lib/imperituroard.rb in imperituroard-0.3.7 vs lib/imperituroard.rb in imperituroard-0.3.8

- old
+ new

@@ -795,11 +795,11 @@ end class Mhub_2 - attr_accessor :sk_url, :sk_login, :sk_password, :mhub_connector + attr_accessor :sk_url, :sk_login, :sk_password, :mhub_connector, :internal_func def initialize(sk_url, sk_login, sk_password, telegram_api_url, telegram_chat_id) @sk_url = sk_url @sk_login = sk_login @sk_password = sk_password @@ -845,19 +845,20 @@ mhub_connector.sk_send_viber_sms(msisdn, params["notifyUrl"], params["sms"]["text"], params["viber"]["text"], "TEST") else - output_params = {:code => 501, :result => "Invalid input data"} + output_params = {"code": 500, "result": "Invalid input data"} end rescue - output_params = {:code => 500, :result => "Invalid input data"} + output_params = {"code": 500, "result": "Invalid input data"} end internal_func.printer_texter({:input => input_params, :output => output_params, :procedure => "Mhub_2.get_send_message"}, "debug") + output_params end def test2 \ No newline at end of file