Skip to content

Commit

Permalink
Fix select query
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKolodko committed Oct 2, 2023
1 parent 8c1fdc8 commit 3978b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/stats.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class StatsService {
const queryBuilder = logRepository.createQueryBuilder('logs')
.select('distinct(logs.accountId)')
.where(`logs.createdAt >= TO_TIMESTAMP(${dateStart})`)
.orderBy('logs.createdAt desc')
.orderBy('logs.createdAt', 'DESC')
.limit(20)

return await queryBuilder.execute()
Expand Down

0 comments on commit 3978b19

Please sign in to comment.