Exclude archived LOTW certs from expiry checks
Added 'archived' => 0 to the queries in lotw_cert_expired and lotw_cert_expiring methods to ensure only active certificates are considered when checking for expired or expiring LOTW certificates.
这个提交包含在:
父节点
67a652bce6
当前提交
c6413fc755
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -119,7 +119,7 @@ class LotwCert extends CI_Model {
|
||||||
}
|
}
|
||||||
|
|
||||||
function lotw_cert_expired($user_id, $date) {
|
function lotw_cert_expired($user_id, $date) {
|
||||||
$array = array('user_id' => $user_id, 'date_expires <' => $date);
|
$array = array('user_id' => $user_id, 'date_expires <' => $date, 'archived' => 0);
|
||||||
$this->db->where($array);
|
$this->db->where($array);
|
||||||
$query = $this->db->get('lotw_certs');
|
$query = $this->db->get('lotw_certs');
|
||||||
|
|
||||||
|
|
@ -131,7 +131,7 @@ class LotwCert extends CI_Model {
|
||||||
}
|
}
|
||||||
|
|
||||||
function lotw_cert_expiring($user_id, $date) {
|
function lotw_cert_expiring($user_id, $date) {
|
||||||
$array = array('user_id' => $user_id, 'DATE_SUB(date_expires, INTERVAL 30 DAY) <' => $date, 'date_expires >' => $date);
|
$array = array('user_id' => $user_id, 'DATE_SUB(date_expires, INTERVAL 30 DAY) <' => $date, 'date_expires >' => $date, 'archived' => 0);
|
||||||
$this->db->where($array);
|
$this->db->where($array);
|
||||||
$query = $this->db->get('lotw_certs');
|
$query = $this->db->get('lotw_certs');
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用