Automations Endpoint Detail + Cron Endpoint

This commit is contained in:
JonatanRek committed 2021-02-16 14:59:27 +01:00
1 parent 38b29a2a4a
commit 7ea4a90980
4 files changed
+39 -7

No files matched your search

+7 -2
View File
@@ -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']));
}
}
}
}*/
}
}