Move status

This commit is contained in:
CHIEFSOFT\ameye
2024-06-28 12:59:21 -04:00
parent 81b463e00a
commit 51c6f967d3
+15 -1
View File
@@ -90,7 +90,21 @@ class Employment extends BaseController
log_message('error', "updateVerifyQr ----- updateVerifyQr -->" . $updateVerifyQr);
$this->db->query($updateVerifyQr);
$sqlU = "SELECT * FROM employer_checks WHERE uid= '".$data['verify_uid']."'";
$query = $this->db->query( $sqlU );
$row = $query->getResult('array');
if ( $row[0]){
$out = $row[0];
$sqlApplication = "UPDATE applications SET status = 3
WHERE status = 2
AND uid= '".$out["application_uid"]."' ";
$this->db->query($sqlApplication);
}
$row =[];
$data = [
'call_return' => '100',