Skip to content

Commit

Permalink
make sure track is marked as not played when re-added
Browse files Browse the repository at this point in the history
  • Loading branch information
xiduzo committed Jun 21, 2024
1 parent dffae19 commit 565212b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/service/VoteService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class VoteService extends ServiceWithContext {
});

await transaction.track.updateMany({
data: { score: { increment: vote }, totalScore: { increment: vote } },
data: { score: { increment: vote }, totalScore: { increment: vote }, hasBeenPlayed: false },
where: { pin, trackId: { in: trackIds } }
})

Expand Down

0 comments on commit 565212b

Please sign in to comment.