Cron Update

This commit is contained in:
JonatanRek
2020-10-14 14:35:04 +02:00
parent dffaf8eb2e
commit 3aab42d081
3 changed files with 12 additions and 4 deletions

View File

@@ -74,6 +74,7 @@ class EndpointsApi extends ApiController{
'state' => 'succes',
'command' => $command,
], 200);
die();
}
//Log Data Save
@@ -84,6 +85,11 @@ class EndpointsApi extends ApiController{
$deviceLogManager->write("[Device Log Msg] Device_ID " . $device['device_id'] . "->" . $log, LogRecordTypes::ERROR);
unset($deviceLogManager);
}
$this->response([
'state' => 'succes',
'command' => $command,
], 200);
die();
}
// Issuing command