Fix date check

This commit is contained in:
Andreas Kristiansen
2025-08-12 20:29:07 +02:00
parent 08301ef0d7
commit 2699930172

View File

@@ -129,7 +129,7 @@ class Oqrs_model extends CI_Model {
foreach ($result as $row) {
if (strtolower($row->col_qsl_sent ?? '') == 'y') {
$sql = 'update oqrs set status = 2 where qsoid = ? and status = 3 and requesttime > ?';
$sql = 'update oqrs set status = 2 where qsoid = ? and status = 3 and requesttime < ?';
$binding = [$row->qsoid, $row->col_qslsdate];
$query = $this->db->query($sql, $binding);
}