Skip to content

Commit

Permalink
fix: Connecting Slack channel sometimes fails with 404
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Apr 30, 2024
1 parent f7ea19c commit 3298a1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/slack/server/auth/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) {
case IntegrationType.Post: {
const collection = await Collection.scope({
method: ["withMembership", user.id],
}).findByPk(collectionId, {
rejectOnEmpty: true,
});
}).findByPk(collectionId);
authorize(user, "read", collection);
authorize(user, "update", user.team);

Expand Down

0 comments on commit 3298a1c

Please sign in to comment.