From c5c1766120b7f08ce57942f72949431a91c544c6 Mon Sep 17 00:00:00 2001 From: skye Date: Thu, 4 May 2023 12:15:52 +0300 Subject: [PATCH] fix(client): fix create action api command field --- client/src/api/game/create_action.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/api/game/create_action.rs b/client/src/api/game/create_action.rs index 90686f0..2a839cc 100644 --- a/client/src/api/game/create_action.rs +++ b/client/src/api/game/create_action.rs @@ -19,7 +19,7 @@ struct CreateActionPost { game_id: String, invoker: String, target: String, - command: Command, + command: String, seed: u64, } @@ -31,7 +31,7 @@ pub fn create_action( game_id: action.game_id.to_string(), invoker: action.invoker.to_string(), target: action.target.to_string(), - command: action.command.clone(), + command: serde_json::to_string(&action.command).unwrap(), seed: action.seed, }); -- 2.44.1