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 3978b19 commit 05a1fad
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 @@ -127,7 +127,7 @@ export class StatsService {
const dateStart = moment().subtract(hourPeriod, 'hour').unix()

const queryBuilder = logRepository.createQueryBuilder('logs')
.select('distinct(logs.accountId)')
.select('distinct(logs.accountId), logs.createdAt')
.where(`logs.createdAt >= TO_TIMESTAMP(${dateStart})`)
.orderBy('logs.createdAt', 'DESC')
.limit(20)
Expand Down

0 comments on commit 05a1fad

Please sign in to comment.