diff --git a/src/routes/contest.rs b/src/routes/contest.rs index 647f8a8..7f70915 100644 --- a/src/routes/contest.rs +++ b/src/routes/contest.rs @@ -70,7 +70,7 @@ pub async fn remove_problem( problem_id: &str, auth: Json>, ) -> Result { - if !session::verify(db, &auth.id, &auth.token).await { + if !session::verify(db, auth.id, auth.token).await { return Err(Error::Unauthorized(Json("Invalid session".into()))); }