3
0

Fix before-record-delete event

This commit is contained in:
Denis Arh 2019-10-23 18:02:32 +02:00
parent 941ae38cb6
commit 053be7e893

View File

@ -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
}