Skip to content

Commit

Permalink
Fix bug on enterTournament endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Alputer committed Jan 27, 2024
1 parent 33718c0 commit 92c7c80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/repositories/tournament.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export class TournamentRepository {
duration: {
N: String(data.duration),
},
availableGroupId: {
S: data.availableGroupId,
},
availableGroupItemCount: {
N: String(data.availableGroupItemCount),
},
isOngoing: {
S: data.isOngoing,
},
Expand Down
1 change: 1 addition & 0 deletions src/repositories/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ export class UserRepository {
TableName: this.tournamentGroupRepository.getTableName(),
Key: {
groupId: { S: user.currGroupId },
username: { S: user.username },
},
UpdateExpression: 'SET tournamentScore = tournamentScore + :val',
ExpressionAttributeValues: {
Expand Down

0 comments on commit 92c7c80

Please sign in to comment.