fix: add board check when del group (#1124)
* fix: add board check when del group * Update busi_group.go Co-authored-by: Ziv <xiaozheng@tuya.com> Co-authored-by: ulricqin <ulricqin@qq.com>
This commit is contained in:
parent
e7d2c45f9d
commit
640b6e6825
|
@ -119,7 +119,7 @@ func (bg *BusiGroup) Del() error {
|
||||||
return errors.New("Some targets still in the BusiGroup")
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue