Automations Endpoint Detail + Cron Endpoint

Este commit está contenido en:
2021-02-16 14:59:27 +01:00
padre 38b29a2a4a
commit 7ea4a90980
Se han modificado 4 ficheros con 39 adiciones y 7 borrados

Ver fichero

@@ -43,10 +43,15 @@ class AutomationManager{
}
public static function getById($automationId){
return Db::loadOne("SELECT * FROM automation WHERE automation_id = ?", [$automationId]);
}
public static function executeAll(){
global $logManager;
$automations = Db::loadAll ("SELECT * FROM automation");
/*$automations = Db::loadAll ("SELECT * FROM automation");
$dayNameNow = strtolower (date('D', time()));
foreach ($automations as $automation) {
@@ -170,6 +175,6 @@ class AutomationManager{
Db::edit('automation', array('locked' => 0), 'WHERE automation_id = ?', array($automation['automation_id']));
}
}
}
}*/
}
}