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 {
|
if delete {
|
||||||
// some user-group already deleted
|
// some user-group already deleted
|
||||||
DB().Model(s).Update("user_group_ids", strings.Join(exists, " "))
|
DB().Model(s).Update("user_group_ids", strings.Join(exists, " "))
|
||||||
|
s.UserGroupIds = strings.Join(exists, " ")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue