Adopt database changes in flarum/core

This commit is contained in:
Franz Liedke 2018-10-21 00:58:43 +02:00
parent aee0d4a856
commit 0d592cfcff

View File

@ -60,9 +60,9 @@ class AddStatisticsData
private function getStatistics()
{
$entities = [
'users' => [User::query(), 'join_time'],
'discussions' => [Discussion::query(), 'start_time'],
'posts' => [Post::where('type', 'comment'), 'time']
'users' => [User::query(), 'joined_at'],
'discussions' => [Discussion::query(), 'created_at'],
'posts' => [Post::where('type', 'comment'), 'created_at']
];
return array_map(function ($entity) {
@ -121,5 +121,4 @@ class AddStatisticsData
{
return new DateTimeZone($this->settings->get('flarum-statistics.timezone', date_default_timezone_get()));
}
}