未验证 提交 640b6e68 编写于 作者: X xiaoziv 提交者: GitHub

fix: add board check when del group (#1124)

* fix: add board check when del group

* Update busi_group.go
Co-authored-by: NZiv <xiaozheng@tuya.com>
Co-authored-by: 滴滴夜莺开源社区's avatarulricqin <ulricqin@qq.com>
上级 e7d2c45f
......@@ -119,7 +119,7 @@ func (bg *BusiGroup) Del() error {
return errors.New("Some targets still in the BusiGroup")
}
has, err = Exists(DB().Model(&Dashboard{}).Where("group_id=?", bg.Id))
has, err = Exists(DB().Model(&Board{}).Where("group_id=?", bg.Id))
if err != nil {
return err
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册