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

Avoid using GET requests when adding case notes
This commit is contained in:
Adam Zammit
2017-10-04 12:20:39 +11:00
parent e851f88a42
commit a2a12eb559
2 changed files with 16 additions and 21 deletions

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);