mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
History: Fix panic on acknowledgement comment expiry
This commit is contained in:
parent
cbc6aa16c0
commit
c3b5366a36
1 changed files with 5 additions and 1 deletions
|
|
@ -316,7 +316,11 @@ func commentHistoryWorker(super *supervisor.Supervisor) {
|
|||
case "comment_add":
|
||||
eventTime = values["entry_time"].(string)
|
||||
case "comment_remove":
|
||||
eventTime = values["remove_time"].(string)
|
||||
if values["remove_time"] != nil {
|
||||
eventTime = values["remove_time"].(string)
|
||||
} else {
|
||||
eventTime = values["expire_time"].(string)
|
||||
}
|
||||
}
|
||||
|
||||
data := []interface{}{
|
||||
|
|
|
|||
Loading…
Reference in a new issue