Fixed live poll database cleanup

This commit is contained in:
Lucas Bartholemy 2018-04-25 11:47:35 +02:00
parent 8a2f600776
commit 1cba135c85

View File

@ -28,7 +28,7 @@ class DatabaseCleanup extends ActiveJob
public function run()
{
if (Yii::$app->live->driver instanceof Poll) {
Live::deleteAll('created_at +' . Yii::$app->live->maxLiveEventAge . ' < ' . time());
Live::deleteAll('created_at +' . Yii::$app->live->driver->maxLiveEventAge . ' < ' . time());
}
}