提交 2bfc6768 编写于 作者: U Ulric Qin

refactor alert_subscribe.user_group_ids

上级 6c2c8f99
...@@ -177,6 +177,7 @@ func (s *AlertSubscribe) FillUserGroups(cache map[int64]*UserGroup) error { ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册