2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Automatically end stale cases even if technically still on a call

This commit is contained in:
Adam Zammit
2017-10-04 12:17:55 +11:00
parent 7b11a69f6c
commit e0f0c3d786

View File

@@ -124,8 +124,7 @@ while (!is_process_killed($process_id)) //check if process killed every $sleepin
$sql = "UPDATE `case`
SET current_operator_id = NULL, current_outcome_id = 5
WHERE case_id = '{$r['case_id']}'
AND current_operator_id IS NOT NULL
AND current_call_id IS NULL";
AND current_operator_id IS NOT NULL";
$db->Execute($sql);