diff --git a/src/modules/hook/entity.rs b/src/modules/hook/entity.rs index 545915e..fd716f9 100644 --- a/src/modules/hook/entity.rs +++ b/src/modules/hook/entity.rs @@ -213,7 +213,7 @@ impl EventHooks { } delete_impl(DB_MANAGER.meta_db(), move |rw| { rw.get() - .secondary::(EventHooksKey::account_id, account_id) + .secondary::(EventHooksKey::account_id, Some(account_id)) .map_err(|e| raise_error!(format!("{:#?}", e), ErrorCode::InternalError))? .ok_or_else(|| { raise_error!(