fix: Error in WebhookProcessor when team is permanatly destroyed

This commit is contained in:
Tom Moor
2022-07-26 22:33:48 +01:00
parent 2794057738
commit ea28dc46eb
2 changed files with 7 additions and 3 deletions

View File

@@ -7,6 +7,10 @@ export default class WebhookProcessor extends BaseProcessor {
static applicableEvents: ["*"] = ["*"];
async perform(event: Event) {
if (!event.teamId) {
return;
}
const webhookSubscriptions = await WebhookSubscription.findAll({
where: {
enabled: true,