CC-3336: Refactor schedule API used by pypo
This commit is contained in:
parent
057e377c5f
commit
a6413f2d1a
5 changed files with 33 additions and 19 deletions
|
@ -29,7 +29,7 @@ class Application_Model_RabbitMq
|
|||
$EXCHANGE = 'airtime-pypo';
|
||||
$channel->exchange_declare($EXCHANGE, 'direct', false, true);
|
||||
|
||||
$data = json_encode($md);
|
||||
$data = json_encode($md, JSON_FORCE_OBJECT);
|
||||
$msg = new AMQPMessage($data, array('content_type' => 'text/plain'));
|
||||
|
||||
$channel->basic_publish($msg, $EXCHANGE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue