Skip to content

Commit

Permalink
fix: Removing favorite streamers in total count.
Browse files Browse the repository at this point in the history
  • Loading branch information
KararTY committed Aug 10, 2020
1 parent f01f9e5 commit acd8b16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Controllers/Http/SplashController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class SplashController {
user: auth.user?.toJSON(),
web: {
template: 'splash',
title: 'Find friends!',
title: 'Find Twitch people!',
statistics: statistics,
},
})
Expand All @@ -37,7 +37,8 @@ export default class SplashController {
.fromJSDate(new Date())
.set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).toJSDate()

const countTotalUsers = User.query().count('*', 'total').first()
const countTotalUsers = User.query()
.whereNot('created_at', '>', String(DateTime.fromJSDate(new Date('1971')).toSQL())).count('*', 'total').first()
const countTotalChannels = User.query().where({ host: true }).count('*', 'total').first()

const countNewUsers = User.query()
Expand Down

0 comments on commit acd8b16

Please sign in to comment.