From ac7b4dc56dd950bdbbf0a8edc3f8550e9e4b621b Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Wed, 12 Jul 2017 10:19:02 +0630 Subject: [PATCH] dev dis --- app/controllers/origami/discounts_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/origami/discounts_controller.rb b/app/controllers/origami/discounts_controller.rb index c0d93e15..ce3a4f9d 100644 --- a/app/controllers/origami/discounts_controller.rb +++ b/app/controllers/origami/discounts_controller.rb @@ -198,8 +198,9 @@ class Origami::DiscountsController < BaseOrigamiController if response[:status] == false result = {:status=> response[:message], :table_id => table_id,:table_type => table_type } end - # result = {:status=> response["message"], :table_id => table_id,:table_type => table_type } - + if response["status"] == 500 + result = {:status=> response["message"], :table_id => table_id,:table_type => table_type } + end render :json => result.to_json end