refactor alert_subscribe.user_group_ids
This commit is contained in:
parent
6c2c8f9900
commit
2bfc67686d
|
@ -177,6 +177,7 @@ func (s *AlertSubscribe) FillUserGroups(cache map[int64]*UserGroup) error {
|
|||
if delete {
|
||||
// some user-group already deleted
|
||||
DB().Model(s).Update("user_group_ids", strings.Join(exists, " "))
|
||||
s.UserGroupIds = strings.Join(exists, " ")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue