1 parent d611aef commit 9083441Copy full SHA for 9083441
1 file changed
node_modules_koding/bongo/lib/bongo.coffee
@@ -193,12 +193,9 @@ module.exports = class Bongo extends EventEmitter
193
handleEvent:(type, ctx, event, params)->
194
switch type
195
when 'instance'
196
- if event is 'messageBusEvent'
197
- @publishEventToExchange params[0]
198
- else
199
- payload = JSON.stringify params[0] or null
200
- routingKey = getInstanceRoutingKey ctx, event
201
- @enqueueUpdateInstancesEvent routingKey, payload
+ payload = JSON.stringify params[0] or null
+ routingKey = getInstanceRoutingKey ctx, event
+ @enqueueUpdateInstancesEvent routingKey, payload
202
when 'static'
203
if event is 'broadcast'
204
[secretChannelId, message] = params
0 commit comments