aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/db/matches.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-08-26 19:21:30 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-08-26 19:21:30 +0200
commite26f13c8bba24e6f966888d5909f2803665c55a0 (patch)
tree6d156e0dd18d695103d00d12111ee26e73e8d3a0 /planetwars-server/src/db/matches.rs
parent624fa99fad0d41bfbd0f249ab054745a990a5d8c (diff)
downloadplanetwars.dev-e26f13c8bba24e6f966888d5909f2803665c55a0.tar.xz
planetwars.dev-e26f13c8bba24e6f966888d5909f2803665c55a0.zip
add maps to matches api
Diffstat (limited to 'planetwars-server/src/db/matches.rs')
-rw-r--r--planetwars-server/src/db/matches.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/planetwars-server/src/db/matches.rs b/planetwars-server/src/db/matches.rs
index e2db0c1..86939be 100644
--- a/planetwars-server/src/db/matches.rs
+++ b/planetwars-server/src/db/matches.rs
@@ -21,6 +21,7 @@ pub struct NewMatch<'a> {
pub state: MatchState,
pub log_path: &'a str,
pub is_public: bool,
+ pub map_id: Option<i32>,
}
#[derive(Insertable)]