Fix admin rm ad

This commit is contained in:
Pascal Engélibert 2020-12-08 14:00:44 +01:00
parent 2eafbaad41
commit 9b7c651a8f
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ pub async fn start_server(
}; };
let handle_admin_rm_ad = { let handle_admin_rm_ad = {
let handle_index = handle_index.clone(); let handle_admin = handle_admin.clone();
move |query: AdminRmAdQuery| { move |query: AdminRmAdQuery| {
if let Ok(ad_id) = hex::decode(query.ad) { if let Ok(ad_id) = hex::decode(query.ad) {
if let Ok(ad_id) = AdId::try_from(ad_id.as_ref()) { if let Ok(ad_id) = AdId::try_from(ad_id.as_ref()) {
@ -237,7 +237,7 @@ pub async fn start_server(
} }
} }
} }
handle_index(&[]) handle_admin(&[])
} }
}; };