mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-09 03:25:59 +08:00
tag
This commit is contained in:
@@ -80,7 +80,7 @@ func GetUserNameByUserID(userID string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
var userName string
|
||||
err = dbConn.Table("users").Select("name").Where("user_id=?", userID).Find(&userName).Error
|
||||
err = dbConn.Table("users").Select("name").Where("user_id=?", userID).First(&userName).Error
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user