Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/assignOfflineContact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const assignToOfflineWorker = async (

await targetWorker.update({
activitySid: availableActivity[0].sid,
attributes: JSON.stringify({ ...previousAttributes, waitingOfflineContact: true }), // waitingOfflineContact is used to avoid other tasks to be assigned during this window of time (workflow rules)
attributes: JSON.stringify({ ...previousAttributes, waitingOfflineContact: true, keepAvailable: true }), // waitingOfflineContact is used to avoid other tasks to be assigned during this window of time (workflow rules), keepAvailable is used to prevent custom worker status handler to set offline the worker during this interval
});

const result = await assignToAvailableWorker(event, newTask);
Expand Down