diff --git a/mopidy_iris/core.py b/mopidy_iris/core.py index b4c0170d..d5719948 100755 --- a/mopidy_iris/core.py +++ b/mopidy_iris/core.py @@ -154,7 +154,7 @@ class IrisCore(object): 'message': error } - def deliver_message(self, data): + def deliver_message(self, data): to = data['to'] if to in self.connections: diff --git a/src/js/services/pusher/actions.js b/src/js/services/pusher/actions.js index c9c04739..6e9b6eb1 100755 --- a/src/js/services/pusher/actions.js +++ b/src/js/services/pusher/actions.js @@ -58,11 +58,13 @@ export function deliverBroadcast( data = null ){ export function sendAuthorization( recipient_connectionid, authorization, me ){ return { type: 'PUSHER_DELIVER_MESSAGE', - to: recipient_connectionid, - message: { - type: 'spotify_authorization', - authorization: authorization, - me: me + data: { + to: recipient_connectionid, + message: { + type: 'spotify_authorization', + authorization: authorization, + me: me + } } } }