refactor(slack): move scopes out of function definition
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { IField, IGlobalVariable } from '@automatisch/types';
|
||||
import qs from 'qs';
|
||||
|
||||
export default async function createAuthData($: IGlobalVariable) {
|
||||
const scopes = [
|
||||
const scopes = [
|
||||
'channels:manage',
|
||||
'channels:read',
|
||||
'channels:join',
|
||||
@@ -18,8 +17,8 @@ export default async function createAuthData($: IGlobalVariable) {
|
||||
'workflow.steps:execute',
|
||||
'users:read.email',
|
||||
'commands',
|
||||
];
|
||||
const userScopes = [
|
||||
];
|
||||
const userScopes = [
|
||||
'channels:history',
|
||||
'channels:read',
|
||||
'channels:write',
|
||||
@@ -41,7 +40,9 @@ export default async function createAuthData($: IGlobalVariable) {
|
||||
'users.profile:write',
|
||||
'users:read',
|
||||
'users:read.email',
|
||||
];
|
||||
];
|
||||
|
||||
export default async function createAuthData($: IGlobalVariable) {
|
||||
const oauthRedirectUrlField = $.app.auth.fields.find(
|
||||
(field: IField) => field.key == 'oAuthRedirectUrl'
|
||||
);
|
||||
|
Reference in New Issue
Block a user