Skip to content

Commit 8958235

Browse files
authored
Merge pull request #98 from hyphacoop/catch-deletes
fix: catch errors during site deletes
2 parents e76bebb + 8beb3de commit 8958235

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/sites.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ export class SiteConfigStore extends Config<Static<typeof Site>> {
126126
promises.push(this.protocols.hyper.unsync(id, site.links.hyper, ctx))
127127
}
128128

129-
await Promise.all(promises)
129+
await Promise.all(promises).catch((e) => {
130+
ctx?.logger.warn(`Error unsyncing site ${e.stack as string}`)
131+
})
130132
await this.db.del(id)
131133
}
132134

0 commit comments

Comments
 (0)