Skip to content

Commit

Permalink
fix: New Channels statistic.
Browse files Browse the repository at this point in the history
  • Loading branch information
KararTY committed Aug 23, 2020
1 parent 7e1e996 commit 1f37958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Controllers/Http/SplashController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default class SplashController {
.whereBetween('createdAt', [dateMidnight, new Date()])
.count('*', 'total')
.first()
const countNewChannels = Profile.query()
const countNewChannels = User.query()
.where({ host: true })
.whereBetween('createdAt', [dateMidnight, new Date()])
.count('*', 'total')
.first()
Expand Down

0 comments on commit 1f37958

Please sign in to comment.