diff --git a/app/controllers/api/orders_controller.rb b/app/controllers/api/orders_controller.rb index bd2c3e18..77e6f3fd 100755 --- a/app/controllers/api/orders_controller.rb +++ b/app/controllers/api/orders_controller.rb @@ -1,5 +1,5 @@ class Api::OrdersController < Api::ApiController - # skip_before_action :authenticate + skip_before_action :authenticate #Description # This API show current order details # Input Params - order_id diff --git a/app/controllers/api/restaurant/menu_controller.rb b/app/controllers/api/restaurant/menu_controller.rb index 5cafe72c..a01df832 100755 --- a/app/controllers/api/restaurant/menu_controller.rb +++ b/app/controllers/api/restaurant/menu_controller.rb @@ -8,7 +8,8 @@ class Api::Restaurant::MenuController < Api::ApiController param_checksum = params[:checksum] # checksum = File.readlines("public/checksums/menu_json.txt").pop.chomp - all_menu = Menu.active.all + shop_code = params[:shop_code] + all_menu = Menu.where('shop_id=?',shop_code).active.all @request_url = '' if ENV["SERVER_MODE"] == "cloud" @request_url = request.base_url diff --git a/dump.rdb b/dump.rdb index 182008b2..18e0c192 100644 Binary files a/dump.rdb and b/dump.rdb differ