Skip to content

Commit

Permalink
fix: catch errors during site deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauve Signweaver committed Dec 10, 2024
1 parent e76bebb commit 8beb3de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ export class SiteConfigStore extends Config<Static<typeof Site>> {
promises.push(this.protocols.hyper.unsync(id, site.links.hyper, ctx))
}

await Promise.all(promises)
await Promise.all(promises).catch((e) => {
ctx?.logger.warn(`Error unsyncing site ${e.stack as string}`)
})
await this.db.del(id)
}

Expand Down

0 comments on commit 8beb3de

Please sign in to comment.