fix: Only consider enabled AuthenticationProviders for Slack hooks
This commit is contained in:
@@ -155,6 +155,7 @@ router.post("hooks.slack", async (ctx) => {
|
|||||||
where: {
|
where: {
|
||||||
name: "slack",
|
name: "slack",
|
||||||
providerId: team_id,
|
providerId: team_id,
|
||||||
|
enabled: true,
|
||||||
},
|
},
|
||||||
as: "authenticationProviders",
|
as: "authenticationProviders",
|
||||||
model: AuthenticationProvider,
|
model: AuthenticationProvider,
|
||||||
|
|||||||
Reference in New Issue
Block a user