From 450fe26cc0909ed32b0f49a4e6c63e159856dea6 Mon Sep 17 00:00:00 2001 From: a3d21 <93191329+a3d21@users.noreply.github.com> Date: Sun, 5 Nov 2023 18:35:12 +0800 Subject: [PATCH] fix: wrong column (#1309) * fix: wrong column * fix: wrong column 2 --- pkg/common/db/relation/conversation_model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/common/db/relation/conversation_model.go b/pkg/common/db/relation/conversation_model.go index b6c554864..5df14ad4a 100644 --- a/pkg/common/db/relation/conversation_model.go +++ b/pkg/common/db/relation/conversation_model.go @@ -143,7 +143,7 @@ func (c *ConversationGorm) FindRecvMsgNotNotifyUserIDs( return userIDs, utils.Wrap( c.db(ctx). Where("group_id = ? and recv_msg_opt = ?", groupID, constant.ReceiveNotNotifyMessage). - Pluck("user_id", &userIDs). + Pluck("owner_user_id", &userIDs). Error, "", ) @@ -156,7 +156,7 @@ func (c *ConversationGorm) FindSuperGroupRecvMsgNotNotifyUserIDs( return userIDs, utils.Wrap( c.db(ctx). Where("group_id = ? and recv_msg_opt = ? and conversation_type = ?", groupID, constant.ReceiveNotNotifyMessage, constant.SuperGroupChatType). - Pluck("user_id", &userIDs). + Pluck("owner_user_id", &userIDs). Error, "", )