Skip to content

Commit

Permalink
Add game name
Browse files Browse the repository at this point in the history
  • Loading branch information
paula4230 committed Nov 24, 2022
1 parent 9ae7c82 commit 53f4268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fleet_app/extract_hash.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ module FleetApp
#
# `environment` is an optional string that specifies which fleet app to send the request to.

def self.extract_hash(host : String, command : String = "", environment : String = "production", username : String = "")
def self.extract_hash(host : String, game_name : String, command : String = "", environment : String = "production", username : String = "")
FleetApp::ClientWrapper.new(environment).post(
game_name: game_name,
path: "/api/v1/mod_library/brooce_command?queue_name=#{host}",
body: {command: command}.to_json
)
end

def self.extract_hash_with_auth(host : String, basic_auth : String, command : String = "", environment : String = "production", username : String = "")
def self.extract_hash_with_auth(host : String, game_name : String, basic_auth : String, command : String = "", environment : String = "production", username : String = "")
FleetApp::ClientWrapper.new(environment).post_with_auth(
game_name: game_name,
path: "/api/v1/mod_library/brooce_command?queue_name=#{host}",
Expand Down

0 comments on commit 53f4268

Please sign in to comment.