Skip to content

Commit

Permalink
fix: use correct var, probably not meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
reiniiriarios committed Apr 6, 2024
1 parent 1c82048 commit b3c92b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/bookdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export async function saveBook(dir: string, book: Book, oAuthorDir?: string, oFi
book.tags = book.tags.filter((t) => t.trim().length);
}

const filepath = path.join(authorPath, `${newFilename}.yaml`);
const filepath = path.join(dir, `${book.cache.filepath}.yaml`);
if (!book.timestampAdded && !fs.existsSync(filepath)) {
book.timestampAdded = new Date().getTime();
}
Expand Down

0 comments on commit b3c92b6

Please sign in to comment.