pull/141/head
Gordon 3 years ago
parent 6bfbf37749
commit 154624a767

@ -77,7 +77,7 @@ func GetUserByUserID(userID string) (*db.User, error) {
return nil, err return nil, err
} }
var user db.User var user db.User
err = dbConn.Table("users").Where("user_id=?", userID).First(&user).Error err = dbConn.Table("users").Where("user_id=?", userID).Take(&user).Error
if err != nil { if err != nil {
return nil, err return nil, err
} }

Loading…
Cancel
Save