src/step_functions/authentication.rb
# Initialize the local store by setting data from
Initialize the local store by setting data from
Initialize the local store by setting data from
def init_store(data)
  Store.update(
    token: data['token'].first,
    slash_command: data['command'].first,
    command_string: data['text'].first,
    trigger_id: data['trigger_id'].first,
    channel_id: data['channel_id'].first,
    team_id: data['team_id'].first,
    response_url: data['response_url'].first,
    user: {
      name: data['user_name'].first,
      id: data['user_id'].first,
    },
    fail_message: Config.get[:MESSAGES][:user_not_authenticated],
    success_message: "Processing request for `#{data['command'].first}"\
                     "#{data['text'].first}`"
  )
end
def init_store ( data ) Store . update ( token : data [ 'token' ] . first , slash_command : data [ 'command' ] . first , command_string : data [ 'text' ] . first , trigger_id : data [ 'trigger_id' ] . first , channel_id : data [ 'channel_id' ] . first , team_id : data [ 'team_id' ] . first , response_url : data [ 'response_url' ] . first , user : { name : data [ 'user_name' ] . first , id : data [ 'user_id' ] . first , } , fail_message : Config . get [ :MESSAGES ] [ :user_not_authenticated ] , success_message : "Processing request for `#{data['command'].first}" "#{data['text'].first}`" ) end
Initialize the local store by setting data from
Initialize the local store by setting data from
data
<not_specific>