Skip to content

Commit 38d91f3

Browse files
committed
During reinstall the token may change if the bot was forcefully removed on the customer side.
1 parent ddbed65 commit 38d91f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

slack-shellbot/api/endpoints/teams_endpoint.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ class TeamsEndpoint < Grape::API
5353

5454
if team
5555
team.update_attributes!(
56+
token: token,
5657
activated_user_id: user_id,
5758
activated_user_access_token: access_token,
5859
bot_user_id: bot_user_id
5960
)
61+
6062
raise "Team #{team.name} is already registered." if team.active?
6163

6264
team.activate!(token)

0 commit comments

Comments
 (0)