Skip to content

Commit 259abea

Browse files
committed
Mark 404 configs as synced
1 parent 6507cf9 commit 259abea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/routes/api/sync/configs/+server.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ async function* getConfigSyncTasks() {
4040
});
4141
return;
4242
}
43+
if (e.status === 404) {
44+
await prismaClient.neovimConfig.update({
45+
where: { id: config.id },
46+
data: { lastSyncedAt: new Date() }
47+
});
48+
}
4349
if (e.status === 401) {
4450
await deleteGithubToken(config.userId);
4551
console.log(

0 commit comments

Comments
 (0)