Skip to content

Commit 46a273e

Browse files
committed
Fix sync not actually being run
Signed-off-by: Daishan Peng <[email protected]>
1 parent 5df5d60 commit 46a273e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function main() {
8282
for (const page of pages) {
8383
if (metadata.has(page.id)) {
8484
const entry = metadata.get(page.id)
85-
if (entry?.updatedAt === page.last_edited_time) {
85+
if (entry?.updatedAt === page.last_edited_time && fs.existsSync(getPath(outputDir, page))) {
8686
continue;
8787
}
8888
if (entry?.sync) {

0 commit comments

Comments
 (0)