Skip to content

Commit

Permalink
fix: added forgotten session_ts field while signing up
Browse files Browse the repository at this point in the history
  • Loading branch information
Evans Owamoyo committed Jan 12, 2025
1 parent a83bcdc commit bf0a21e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions repository/postgres/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ func NewPlayerRepo(db pgen.DBTX) *PlayerRepo {
// Create implements repository.Player.
func (r *PlayerRepo) Create(ctx context.Context, player game.Player) error {
return r.AddPlayer(ctx, pgen.AddPlayerParams{
Username: player.Username,
Password: player.Password,
Username: player.Username,
Password: player.Password,
SessionTs: pgtype.Int8{Int64: player.SessionTs, Valid: true},
})
}

Expand Down

0 comments on commit bf0a21e

Please sign in to comment.