mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 10:22:36 +08:00
fix conversation
This commit is contained in:
parent
ee577cae4c
commit
9f15f50f9d
@ -99,6 +99,6 @@ func UpdateColumnsConversations(ownerUserIDList []string, conversationID string,
|
|||||||
|
|
||||||
func GetConversationIDListByUserID(userID string) ([]string, error) {
|
func GetConversationIDListByUserID(userID string) ([]string, error) {
|
||||||
var IDList []string
|
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
|
return IDList, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user