Skip to content

Commit

Permalink
melhorias lolrates
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloendoh committed Jun 3, 2024
1 parent 85c6fbe commit 0f30200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/domains/lolrates/player/PlayerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export class PlayerController {
@CurrentUser({ required: true }) user: User,
@Body() sentPlayer: Player
) {
const saved = await this.playerRepo.save(sentPlayer)
const saved = await this.playerRepo.save({
...sentPlayer,
userId: user.id,
})
return this.playerRepo.findOneFull(saved.id)
}
}

0 comments on commit 0f30200

Please sign in to comment.