aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules/bots.rs
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-server/src/modules/bots.rs')
-rw-r--r--planetwars-server/src/modules/bots.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/modules/bots.rs b/planetwars-server/src/modules/bots.rs
index 6a2883c..6893581 100644
--- a/planetwars-server/src/modules/bots.rs
+++ b/planetwars-server/src/modules/bots.rs
@@ -9,7 +9,7 @@ use crate::{db, util::gen_alphanumeric, GlobalConfig};
pub fn save_code_string(
bot_code: &str,
bot_id: Option<i32>,
- conn: &PgConnection,
+ conn: &mut PgConnection,
config: &GlobalConfig,
) -> QueryResult<db::bots::BotVersion> {
let bundle_name = gen_alphanumeric(16);