mooy bot
12/14/2021, 6:06 AMasync buyPlayer(ownerId: string): Promise<void> {
const previousTeam = await this.prismaService.team.findFirst({
where: {
ownerId,
},
include: {
players: true,
},
})
await this.prismaService.team.update({
where: {
ownerId,
},
data: {
players: [...previousTeam.players],
},
})
}