Skip to content

Commit 23645a1

Browse files
committed
chore(slack): trim guard comment
1 parent 0d019dc commit 23645a1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • apps/sim/app/api/tools/slack/channels

apps/sim/app/api/tools/slack/channels/route.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
9393
accessToken = resolvedToken
9494
logger.info('Using OAuth token for Slack API')
9595

96-
// resolvedCredentialId is an account.id only for OAuth credentials; the
97-
// service_account path returns a credential.id, which must not be used as
98-
// an account lookup key. Slack never uses service accounts, but guard
99-
// explicitly so the lookup is correct by construction.
96+
// resolvedCredentialId is an account.id only for OAuth credentials
97+
// (the service_account path returns a credential.id).
10098
if (authz.credentialType === 'oauth' && authz.resolvedCredentialId) {
10199
const [accountRow] = await db
102100
.select({ accountId: account.accountId })

0 commit comments

Comments
 (0)