mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-27 10:31:22 +08:00
path
This commit is contained in:
parent
bc9209e15e
commit
123acaecec
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class NewQuotesDAO {
|
|||
//check for duplicate first
|
||||
const fileDir = path.join(
|
||||
__dirname,
|
||||
`${PATH_TO_REPO}/static/quotes/${language}.json`
|
||||
`${PATH_TO_REPO}/frontend/static/quotes/${language}.json`
|
||||
);
|
||||
let duplicateId = -1;
|
||||
let similarityScore = -1;
|
||||
|
|
@ -84,7 +84,7 @@ class NewQuotesDAO {
|
|||
let message = "";
|
||||
const fileDir = path.join(
|
||||
__dirname,
|
||||
`${PATH_TO_REPO}/static/quotes/${language}.json`
|
||||
`${PATH_TO_REPO}/frontend/static/quotes/${language}.json`
|
||||
);
|
||||
await git.pull("upstream", "master");
|
||||
if (fs.existsSync(fileDir)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue