From bf0a21e00e19291462da7a53100e7603d1803091 Mon Sep 17 00:00:00 2001 From: Evans Owamoyo Date: Sun, 12 Jan 2025 04:18:23 +0300 Subject: [PATCH] fix: added forgotten session_ts field while signing up --- repository/postgres/player.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repository/postgres/player.go b/repository/postgres/player.go index 9dcface..5ec460d 100644 --- a/repository/postgres/player.go +++ b/repository/postgres/player.go @@ -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}, }) }