mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
Database: Fix login query from GameStats
This commit is contained in:
parent
4c10435b92
commit
c084fc940a
|
|
@ -229,7 +229,9 @@ func LoginUserToGameStats(pool *pgxpool.Pool, ctx context.Context, userId uint64
|
|||
var firstName *string
|
||||
var lastName *string
|
||||
var lastIPAddress *string
|
||||
err := pool.QueryRow(ctx, GetUserProfileID, userId, gsbrcd).Scan(&user.ProfileId, &user.NgDeviceId, &user.Email, &user.UniqueNick, &firstName, &lastName, &user.OpenHost, &lastIPAddress)
|
||||
var allowDefaultKeys bool
|
||||
|
||||
err := pool.QueryRow(ctx, GetUserProfileID, userId, gsbrcd).Scan(&user.ProfileId, &user.NgDeviceId, &user.Email, &user.UniqueNick, &firstName, &lastName, &user.OpenHost, &lastIPAddress, &allowDefaultKeys)
|
||||
if err != nil {
|
||||
return User{}, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user