Pass through local_id and sender_queue_id in non-rabbitmq case

(imported from commit 8989225a0943b39e45bd5debe405acb9768acc8c)
This commit is contained in:
Leo Franchi 2014-01-14 12:14:50 -05:00
parent 439633fd03
commit 7743aa191c
1 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,9 @@ def fake_message_sender(event):
msg_id = check_send_message(sender, client, req['type'], msg_id = check_send_message(sender, client, req['type'],
extract_recipients(req['to']), extract_recipients(req['to']),
req['subject'], req['content']) req['subject'], req['content'],
local_id=req.get('local_id', None),
sender_queue_id=req.get('queue_id', None))
resp = {"result": "success", "msg": "", "id": msg_id} resp = {"result": "success", "msg": "", "id": msg_id}
except JsonableError as e: except JsonableError as e:
resp = {"result": "error", "msg": str(e)} resp = {"result": "error", "msg": str(e)}