Update AdminStatsService, fix reports_monthly stat

pull/7238/head
Daniel Supernault 1 week ago
parent b2deebb72b
commit 6a2208087c
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -83,7 +83,7 @@ class AdminStatsService
'contact' => PrettyNumber::convert(Contact::whereNull('read_at')->count()),
'contact_monthly' => PrettyNumber::convert(Contact::whereNull('read_at')->where('created_at', '>', now()->subMonth())->count()),
'reports' => PrettyNumber::convert(Report::whereNull('admin_seen')->count()),
'reports_monthly' => PrettyNumber::convert(Report::whereNull('admin_seen')->where('created_at', '>', now()->subMonth())->count()),
'reports_monthly' => PrettyNumber::convert(Report::where('created_at', '>', now()->subMonth())->count()),
];
});
}

Loading…
Cancel
Save