Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit 14eab4b

Browse files
author
wimo7083
committed
changed name to be more descriptive
1 parent 24e47b8 commit 14eab4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/jobs/slack_jobs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class SlackJobs < ApplicationJob
66
def slack_client
77
@slack_client ||= Slack::Client.new(
88
subdomain: ENV.fetch('SLACK_SUBDOMAIN'),
9-
token: ENV.fetch('SLACK_TOKEN') # admin token required to invite
9+
token: ENV.fetch('SLACK_LEGACY_ADMIN_TOKEN') # admin token required to invite
1010
)
1111
end
1212
end

app/lib/slack/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def client
2020
def set_client
2121
Slack::Client.new(
2222
subdomain: OperationCode.fetch_secret_with(name: :slack_domain),
23-
token: OperationCode.fetch_secret_with(name: :slack_token)
23+
token: OperationCode.fetch_secret_with(name: :slack_legacy_admin_token)
2424
)
2525
end
2626
end

0 commit comments

Comments
 (0)