aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/routes/matches.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-03-12 09:04:12 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-03-12 09:04:12 +0100
commitf7655005ff099e8314ecd31e95b26ad74d4efd02 (patch)
tree9907f7d908c3028abf244fb691755514b142f392 /planetwars-server/src/routes/matches.rs
parenta1d7760b720d7cc37b89fc5c39de8ae20f7e2c50 (diff)
downloadplanetwars.dev-f7655005ff099e8314ecd31e95b26ad74d4efd02.tar.xz
planetwars.dev-f7655005ff099e8314ecd31e95b26ad74d4efd02.zip
typo: maches -> matches
Diffstat (limited to 'planetwars-server/src/routes/matches.rs')
-rw-r--r--planetwars-server/src/routes/matches.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/planetwars-server/src/routes/matches.rs b/planetwars-server/src/routes/matches.rs
index fc09551..9fa532e 100644
--- a/planetwars-server/src/routes/matches.rs
+++ b/planetwars-server/src/routes/matches.rs
@@ -160,7 +160,8 @@ pub async fn get_match_log(
Path(match_id): Path<i32>,
conn: DatabaseConnection,
) -> Result<Vec<u8>, StatusCode> {
- let match_base = matches::find_mach_base(match_id, &conn).map_err(|_| StatusCode::NOT_FOUND)?;
+ let match_base =
+ matches::find_match_base(match_id, &conn).map_err(|_| StatusCode::NOT_FOUND)?;
let log_path = PathBuf::from(MATCHES_DIR).join(&match_base.log_path);
let log_contents = std::fs::read(log_path).map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
Ok(log_contents)