无论哪种状态都回调

This commit is contained in:
Ulric Qin 2020-03-24 17:09:09 +08:00
parent 4e5f7a56da
commit 19c9e4eb36
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ func consume(event *model.Event) {
SetEventStatus(event, model.STATUS_UPGRADE)
if needNotify {
if event.EventType == config.ALERT && NeedCallback(event.Sid) {
if NeedCallback(event.Sid) {
if err := PushCallbackEvent(event); err != nil {
logger.Errorf("push event to callback queue failed, callbackEvent: %+v", event)
}
@ -82,7 +82,7 @@ func consume(event *model.Event) {
return
}
if event.EventType == config.ALERT && NeedCallback(event.Sid) {
if NeedCallback(event.Sid) {
if err := PushCallbackEvent(event); err != nil {
logger.Errorf("push event to callback queue failed, callbackEvent: %+v", event)
}