parse tags for cur_events

This commit is contained in:
Ulric Qin 2022-04-07 18:30:11 +08:00
parent ea30f38b9b
commit cb3e371094
1 changed files with 6 additions and 0 deletions

View File

@ -358,6 +358,12 @@ func AlertCurEventGetByIds(ids []int64) ([]*AlertCurEvent, error) {
}
err := DB().Where("id in ?", ids).Order("id desc").Find(&lst).Error
if err == nil {
for i := 0; i < len(lst); i++ {
lst[i].DB2FE()
}
}
return lst, err
}