Fix before-record-delete event
This commit is contained in:
parent
941ae38cb6
commit
053be7e893
@ -427,7 +427,7 @@ func (svc record) DeleteByID(namespaceID, recordID uint64) (err error) {
|
||||
return ErrNoDeletePermissions.withStack()
|
||||
}
|
||||
|
||||
if err = svc.sr.BeforeRecordCreate(svc.ctx, ns, m, r); err != nil {
|
||||
if err = svc.sr.BeforeRecordDelete(svc.ctx, ns, m, r); err != nil {
|
||||
// Calling
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user