Must have Id as well in order to know which monitor to control

This commit is contained in:
Isaac Connor 2021-03-17 17:14:46 -04:00
parent ccb1bc1a7d
commit 1b876f24f9
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ class MonitorsController extends AppController {
public function daemonControl($id, $command, $daemon=null) {
// Need to see if it is local or remote
$monitor = $this->Monitor->find('first', array(
'fields' => array('Type', 'Function', 'Device', 'ServerId'),
'fields' => array('Id', 'Type', 'Function', 'Device', 'ServerId'),
'conditions' => array('Id' => $id)
));
$monitor = $monitor['Monitor'];