refactor alert_subscribe.user_group_ids

This commit is contained in:
Ulric Qin 2021-12-07 19:33:39 +08:00
parent 6c2c8f9900
commit 2bfc67686d
1 changed files with 1 additions and 0 deletions

View File

@ -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