fix(slack): use SLACK_USER_TOKEN when connecting to Slack (#28103)
* fix(slack): use SLACK_USER_TOKEN when connecting to Slack (closes #26480) * test(slack): fix account fixture typing for user token source --------- Co-authored-by: Tak Hoffman <[email protected]>
This commit is contained in:
co-authored by
Tak Hoffman
parent
46da76e267
commit
6dbbc58a8d
@@ -327,7 +327,7 @@ async function resolveSlackNames(params: {
|
||||
entries: string[];
|
||||
}) {
|
||||
const account = resolveSlackAccount({ cfg: params.cfg, accountId: params.accountId });
|
||||
const token = account.config.userToken?.trim() || account.botToken?.trim();
|
||||
const token = account.userToken || account.botToken?.trim();
|
||||
if (!token) {
|
||||
return new Map<string, string>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user