From 22a8f3d619e8ef89eeb9a60ab0a27aed01aa93f7 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 27 Feb 2022 20:35:22 +0100 Subject: save all uploaded code bundles in database --- planetwars-server/src/routes/bots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planetwars-server/src/routes/bots.rs') diff --git a/planetwars-server/src/routes/bots.rs b/planetwars-server/src/routes/bots.rs index 0edfaa9..66b4d82 100644 --- a/planetwars-server/src/routes/bots.rs +++ b/planetwars-server/src/routes/bots.rs @@ -97,7 +97,7 @@ pub async fn upload_code_multipart( .map_err(|_| StatusCode::BAD_REQUEST)?; let bundle = bots::NewCodeBundle { - bot_id: bot.id, + bot_id: Some(bot.id), path: &folder_name, }; let code_bundle = -- cgit v1.2.3