Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zoholib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gems
zoholib
Commits
1068ae7d
Commit
1068ae7d
authored
Sep 09, 2020
by
Jose Ernesto Suarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing returning values for b12
parent
e11497b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
b12_client.rb
lib/zoholib/b12_client.rb
+5
-2
version.rb
lib/zoholib/version.rb
+1
-1
No files found.
lib/zoholib/b12_client.rb
View file @
1068ae7d
...
@@ -30,8 +30,11 @@ module Wedoops
...
@@ -30,8 +30,11 @@ module Wedoops
begin
begin
b12_id
=
response
.
body
[
:lead_response
][
:return
]
b12_id
=
response
.
body
[
:lead_response
][
:return
]
unless
b12_id
.
match
(
/^\d*$/
)
unless
b12_id
.
match
(
/^\d*$/
)
raise
"Error de B12, envio
#{
lead
[
:idvar
]
}
tlf:
#{
lead
[
:Telefono
]
}
duplicado (
#{
b12_id
}
)"
if
b12_id
==
"-1"
if
b12_id
==
"-1"
raise
"Error interno de B12, error
#{
b12_id
}
recibido"
@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
end
rescue
Exception
=>
e
rescue
Exception
=>
e
@logger
.
error
(
"Error getting the LEAD ID:
#{
e
.
message
}
"
)
@logger
.
error
(
"Error getting the LEAD ID:
#{
e
.
message
}
"
)
...
...
lib/zoholib/version.rb
View file @
1068ae7d
# frozen_string_literal: true
# frozen_string_literal: true
module
Wedoops
module
Wedoops
module
Zoholib
module
Zoholib
VERSION
=
'0.
19
'
VERSION
=
'0.
20
'
end
end
end
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment