conversation

This commit is contained in:
wangchuxiao
2022-08-22 16:14:31 +08:00
parent 73a73b7bc7
commit 92fc43cb3d
2 changed files with 3 additions and 2 deletions
@@ -99,6 +99,6 @@ func UpdateColumnsConversations(ownerUserIDList []string, conversationID string,
func GetConversationIDListByUserID(userID string) ([]string, error) {
var IDList []string
err := db.DB.MysqlDB.DefaultGormDB().Model(&db.Conversation{}).Where("user_id=?", userID).Pluck("conversation_id", &IDList).Error
err := db.DB.MysqlDB.DefaultGormDB().Model(&db.Conversation{}).Where("owner_user_id=?", userID).Pluck("conversation_id", &IDList).Error
return IDList, err
}