Skip to content

Commit

Permalink
fix sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed Sep 28, 2024
1 parent 788bde7 commit b1588f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/games/games.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class GamesService {
const game = await this.gamesRepository
.createQueryBuilder()
.setFindOptions(findParameters)
.orderBy("RAND()")
.orderBy("RANDOM()")
.limit(1)
.getOneOrFail();

Expand Down

0 comments on commit b1588f2

Please sign in to comment.