Skip to content

Handover Endpoint - Throw error when no agents are online#59

Merged
renatobecker merged 7 commits into
masterfrom
fix-handover-no-agents-online
Aug 23, 2021
Merged

Handover Endpoint - Throw error when no agents are online#59
renatobecker merged 7 commits into
masterfrom
fix-handover-no-agents-online

Conversation

@murtaza98

@murtaza98 murtaza98 commented May 4, 2021

Copy link
Copy Markdown
Contributor

Old behaviour:

If the handover fails and no agents were online, the endpoint would not throw any error and would return same 200 OK status code

New Behaviour:

If the handover fails because no agents were online, the endpoint will throw an error
Response status code: 409
Response body: { "error": "Handover failed! No agents online" }

Plus, we're introducing a new setting where a admin can configure a custom message to be sent to the visitor, incase a handover attempt is failed

Shailesh351 pushed a commit to Shailesh351/Apps.Dialogflow that referenced this pull request Jun 15, 2021
[Upstream Catchup] Merge RocketChat/Apps.Dialogflow:master to master
@renatobecker renatobecker merged commit 4a7ba0e into master Aug 23, 2021
@renatobecker renatobecker deleted the fix-handover-no-agents-online branch August 23, 2021 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants