update cable for cloud

This commit is contained in:
Aung Myo
2018-04-25 13:18:54 +06:30
parent d0ad95c8d6
commit 9b0a564b9a
10 changed files with 26 additions and 28 deletions

View File

@@ -61,7 +61,7 @@ class Api::OrderReserve::OrderReservationController < Api::ApiController
order_reservation = OrderReservation.find(order_reservation_id)
# if ENV["SERVER_MODE"] != 'cloud'
# ActionCable.server.broadcast "order_reservation_channel",data: order_reservation
ActionCable.server.broadcast "order_reservation_channel",data: order_reservation
# end
if flag
render :json => { :status => true, :order_reservation_id => order_reservation_id, :message => "Order reservation is successfully created!" }