🐛 修复清理不活跃成员功能的BUG

This commit is contained in:
李寻欢
2024-05-16 00:12:47 +08:00
parent 9c7e93660d
commit 8c2ab9376c
3 changed files with 5 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ func GetAllEnableNews() (records []entity.Friend, err error) {
// @return records
// @return err
func GetAllEnableClearGroup() (records []entity.Friend, err error) {
err = client.MySQL.Where("clear_members != 0").Where("is_ok IS TRUE").Find(&records).Error
err = client.MySQL.Where("clear_member > 0").Where("is_ok IS TRUE").Find(&records).Error
return
}