diff --git a/pkg/common/db/mysql_model/im_mysql_model/group_model.go b/pkg/common/db/mysql_model/im_mysql_model/group_model.go index c0da8d320..98a39c9f5 100644 --- a/pkg/common/db/mysql_model/im_mysql_model/group_model.go +++ b/pkg/common/db/mysql_model/im_mysql_model/group_model.go @@ -230,6 +230,6 @@ func GetAllGroupIDList() ([]string, error) { return nil, err } var groupIDList []string - err = dbConn.Model(&db.Group{}).Pluck("group_id", &groupIDList).Error + err = dbConn.Model("groups").Pluck("group_id", &groupIDList).Error return groupIDList, err }