From 3ac0ecfec25617e5282f507de615c8ea5a29b69d Mon Sep 17 00:00:00 2001 From: Xander Date: Sun, 22 Oct 2023 12:31:51 +0200 Subject: Add containerfile and fix all issues --- planetwars-server/src/routes/matches.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'planetwars-server/src/routes') diff --git a/planetwars-server/src/routes/matches.rs b/planetwars-server/src/routes/matches.rs index 1ae8c27..0b8e5b7 100644 --- a/planetwars-server/src/routes/matches.rs +++ b/planetwars-server/src/routes/matches.rs @@ -108,6 +108,10 @@ pub async fn list_recent_matches( None => matches::list_public_matches(count, params.before, params.after, &mut conn), }; + match matches_result { + Ok(_) => println!("ok"), + Err(ref err) => println!("{}",err) + }; let mut matches = matches_result.expect("failed to get matches"); //.map_err(|_| StatusCode::BAD_REQUEST)?; let mut has_next = false; -- cgit v1.2.3