aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/routes/bots.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-05 20:34:20 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-05 20:34:20 +0200
commitb3df5c6f8cc59e099a2f1db3df8089af4abca02e (patch)
tree8b717834ab72165610b1548bb080a3299d936936 /planetwars-server/src/routes/bots.rs
parent8a47b948eb88f1e0ff649880a70f9416306bac92 (diff)
downloadplanetwars.dev-b3df5c6f8cc59e099a2f1db3df8089af4abca02e.tar.xz
planetwars.dev-b3df5c6f8cc59e099a2f1db3df8089af4abca02e.zip
migrate code_bundles to bot_versions
Diffstat (limited to 'planetwars-server/src/routes/bots.rs')
-rw-r--r--planetwars-server/src/routes/bots.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/routes/bots.rs b/planetwars-server/src/routes/bots.rs
index df0c4d0..6d5d7df 100644
--- a/planetwars-server/src/routes/bots.rs
+++ b/planetwars-server/src/routes/bots.rs
@@ -215,7 +215,7 @@ pub async fn upload_code_multipart(
let bundle = bots::NewCodeBundle {
bot_id: Some(bot.id),
- path: &folder_name,
+ code_bundle_path: &folder_name,
};
let code_bundle =
bots::create_code_bundle(&bundle, &conn).expect("Failed to create code bundle");