File tree Expand file tree Collapse file tree
apps/sim/app/api/tools/slack/channels Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments