fix(notify): panic for err

This commit is contained in:
rainzm
2021-01-14 14:25:35 +08:00
parent 25e95ac392
commit 36853a6cf2
+1 -1
View File
@@ -175,7 +175,7 @@ func (self *NotificationSendTask) OnInit(ctx context.Context, obj db.IStandalone
// check result
for _, fd := range fds {
rn := contactMap[fd.Contact]
sendFail(rn, err.Error())
sendFail(rn, fd.Reason)
delete(contactMap, fd.Contact)
}
// after send for successful notify