refactor(slack): move scopes out of function definition
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { IField, IGlobalVariable } from '@automatisch/types';
|
||||
import qs from 'qs';
|
||||
|
||||
export default async function createAuthData($: IGlobalVariable) {
|
||||
const scopes = [
|
||||
'channels:manage',
|
||||
'channels:read',
|
||||
@@ -42,6 +41,8 @@ export default async function createAuthData($: IGlobalVariable) {
|
||||
'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