fix: use Some(account_id) instead of raw account_id when delete hook entity

This commit is contained in:
rustmailer
2025-09-11 00:37:35 +08:00
parent b5e7395fa7
commit 1f4d2294ad
+1 -1
View File
@@ -213,7 +213,7 @@ impl EventHooks {
}
delete_impl(DB_MANAGER.meta_db(), move |rw| {
rw.get()
.secondary::<EventHooks>(EventHooksKey::account_id, account_id)
.secondary::<EventHooks>(EventHooksKey::account_id, Some(account_id))
.map_err(|e| raise_error!(format!("{:#?}", e), ErrorCode::InternalError))?
.ok_or_else(|| {
raise_error!(