From 47cb54461f98f6214e5a0cf88231ee712329fa27 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 29 Apr 2022 18:56:53 +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 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 }