From 1f4d2294adcf2920b47208bc0293781237be363a Mon Sep 17 00:00:00 2001 From: rustmailer Date: Thu, 11 Sep 2025 00:37:35 +0800 Subject: [PATCH] fix: use Some(account_id) instead of raw account_id when delete hook entity --- src/modules/hook/entity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!(