Fix admin rm ad
This commit is contained in:
parent
2eafbaad41
commit
9b7c651a8f
|
@ -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(&[])
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue