Skip to content

Commit

Permalink
Fix json format for vaig_event_end params
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Mar 8, 2022
1 parent 2e7e3c6 commit 9373b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa_audiocodes/audiocodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ async def on_activities(request: Request, cid: Text) -> HTTPResponse:
@ac_webhook.route("/conversation/<cid>/disconnect", methods=["POST"])
async def disconnect(request: Request, cid: Text) -> HTTPResponse:
self._get_conversation(request.headers.get("Authorization"), cid)
reason = str({"reason": request.json.get("reason")})
reason = json.dumps({"reason": request.json.get("reason")})
await on_new_message(
UserMessage(text=f"{INTENT_MESSAGE_PREFIX}vaig_event_end{reason}", output_channel=None, sender_id=cid)
)
Expand Down

0 comments on commit 9373b54

Please sign in to comment.