mirror of
https://github.com/rustmailer/rustmailer.git
synced 2026-09-08 08:01:49 +00:00
fix: use Some(account_id) instead of raw account_id when delete hook entity
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user