cron stuff

This commit is contained in:
HB9HIL
2024-04-22 23:58:35 +02:00
parent 452fbfac1a
commit ba3eaa9428
4 changed files with 37 additions and 32 deletions

View File

@@ -11,4 +11,13 @@ class Cron_model extends CI_Model
return $results;
}
function set_last_run($cron) {
$data = array(
'last_run' => date('Y-m-d H:i:s')
);
$this->db->where('id', $cron);
$this->db->update('cron', $data);
}
}