Skip to content

Commit

Permalink
Fix sync not actually being run
Browse files Browse the repository at this point in the history
Signed-off-by: Daishan Peng <[email protected]>
  • Loading branch information
StrongMonkey committed Sep 6, 2024
1 parent 5df5d60 commit 46a273e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function main() {
for (const page of pages) {
if (metadata.has(page.id)) {
const entry = metadata.get(page.id)
if (entry?.updatedAt === page.last_edited_time) {
if (entry?.updatedAt === page.last_edited_time && fs.existsSync(getPath(outputDir, page))) {
continue;
}
if (entry?.sync) {
Expand Down

0 comments on commit 46a273e

Please sign in to comment.