From f1dbec122adec405d81dd6680eee39cfc0ab9de4 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 29 Apr 2022 18:59:08 +0800 Subject: [PATCH] cache --- pkg/common/db/mysql_model/im_mysql_model/group_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 98a39c9f5..954683a6f 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("groups").Pluck("group_id", &groupIDList).Error + err = dbConn.Table("groups").Pluck("group_id", &groupIDList).Error return groupIDList, err }