Commit 1068ae7d authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

fixing returning values for b12

parent e11497b3
......@@ -30,8 +30,11 @@ module Wedoops
begin
b12_id = response.body[:lead_response][:return]
unless b12_id.match(/^\d*$/)
raise "Error de B12, envio #{lead[:idvar]} tlf:#{lead[:Telefono]} duplicado (#{b12_id})" if b12_id == "-1"
raise "Error interno de B12, error #{b12_id} recibido"
if b12_id == "-1"
@logger.error "Error de B12, envio #{lead[:idvar]} tlf:#{lead[:Telefono]} duplicado (#{b12_id})"
else
@logger.error "Error interno de B12, error #{b12_id} recibido"
end
end
rescue Exception => e
@logger.error("Error getting the LEAD ID: #{e.message}")
......
# frozen_string_literal: true
module Wedoops
module Zoholib
VERSION = '0.19'
VERSION = '0.20'
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment