Skip to content

Commit

Permalink
fix: new players won't have a session created
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakShearman committed Apr 7, 2024
1 parent bbe3d19 commit 286fa63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/player/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (s *serviceImpl) HandlePlayerConnect(ctx context.Context, time time.Time, p

session := model.LoginSession{
ID: primitive.NewObjectIDFromTimestamp(time),
PlayerID: player.ID,
PlayerID: playerID,
}

if err := s.repo.CreateLoginSession(ctx, session); err != nil {
Expand Down

0 comments on commit 286fa63

Please sign in to comment.