diff options
Diffstat (limited to 'planetwars-server/src/db')
-rw-r--r-- | planetwars-server/src/db/bots.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/src/db/bots.rs b/planetwars-server/src/db/bots.rs index f7d8373..baabd5a 100644 --- a/planetwars-server/src/db/bots.rs +++ b/planetwars-server/src/db/bots.rs @@ -42,14 +42,14 @@ pub fn find_all_bots(conn: &PgConnection) -> QueryResult<Vec<Bot>> { #[derive(Insertable)] #[table_name = "code_bundles"] pub struct NewCodeBundle<'a> { - pub bot_id: i32, + pub bot_id: Option<i32>, pub path: &'a str, } #[derive(Queryable, Serialize, Deserialize, Debug)] pub struct CodeBundle { pub id: i32, - pub bot_id: i32, + pub bot_id: Option<i32>, pub path: String, pub created_at: chrono::NaiveDateTime, } |