This commit is contained in:
jonatanrek committed 2021-01-04 16:51:34 +01:00
1 parent c4f36235ab
commit a3a87d39d2
2 files changed
+11 -1

No files matched your search

+5
View File
@@ -12,6 +12,11 @@ class CronApi extends ApiController
$backupWorker = new DatabaseBackup();
$backupWorker->purge(5);
//Old Records Cleanup
foreach (SubDeviceManager::getAllSubDevices() as $key => $value) {
RecordManager::setHistory($value['subdevice_id']);
}
$this->response(['Value' => 'OK']);
}