mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
firmware: add sync parameter to check action
This commit is contained in:
parent
fa9eeae08d
commit
9541c1f963
@ -65,14 +65,14 @@ class FirmwareController extends ApiControllerBase
|
||||
* Run check for updates
|
||||
* @return array
|
||||
*/
|
||||
public function checkAction()
|
||||
public function checkAction($sync)
|
||||
{
|
||||
$this->sessionClose(); // long running action, close session
|
||||
$response = [];
|
||||
|
||||
if ($this->request->isPost()) {
|
||||
$backend = new Backend();
|
||||
$response['msg_uuid'] = trim($backend->configdRun('firmware check', true));
|
||||
$response['msg_uuid'] = trim($backend->configdRun('firmware check', empty($sync) ? true : false));
|
||||
$response['status'] = 'ok';
|
||||
} else {
|
||||
$response['status'] = 'failure';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user