From 53f426848a2779b225b6ad55d3fc31df133e8fd5 Mon Sep 17 00:00:00 2001 From: paula4230 Date: Fri, 25 Nov 2022 01:13:28 +0800 Subject: [PATCH] Add game name --- src/fleet_app/extract_hash.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fleet_app/extract_hash.cr b/src/fleet_app/extract_hash.cr index 35b56af..de3900c 100644 --- a/src/fleet_app/extract_hash.cr +++ b/src/fleet_app/extract_hash.cr @@ -11,7 +11,7 @@ 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}", @@ -19,7 +19,7 @@ module FleetApp ) 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}",