mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
Database: Fix improper use of NG device ID column
This commit is contained in:
parent
0032fa4350
commit
ab4e52c649
|
|
@ -181,10 +181,9 @@ func LoginUserToGameStats(pool *pgxpool.Pool, ctx context.Context, userId uint64
|
|||
GsbrCode: gsbrcd,
|
||||
}
|
||||
|
||||
var expectedNgId *uint32
|
||||
var firstName *string
|
||||
var lastName *string
|
||||
err := pool.QueryRow(ctx, GetUserProfileID, userId, gsbrcd).Scan(&user.ProfileId, &expectedNgId, &user.Email, &user.UniqueNick, &firstName, &lastName, &user.OpenHost)
|
||||
err := pool.QueryRow(ctx, GetUserProfileID, userId, gsbrcd).Scan(&user.ProfileId, &user.NgDeviceId, &user.Email, &user.UniqueNick, &firstName, &lastName, &user.OpenHost)
|
||||
if err != nil {
|
||||
return User{}, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user