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