mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 20:38:26 +01:00
Fixed live poll database cleanup
This commit is contained in:
parent
8a2f600776
commit
1cba135c85
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user