fix: Only consider enabled AuthenticationProviders for Slack hooks

This commit is contained in:
Tom Moor
2022-05-28 09:36:22 +02:00
parent 4f0051ed5e
commit 1e84872bab

View File

@@ -155,6 +155,7 @@ router.post("hooks.slack", async (ctx) => {
where: {
name: "slack",
providerId: team_id,
enabled: true,
},
as: "authenticationProviders",
model: AuthenticationProvider,