Commit 50bfb67a8a11d8e01c71b21ba8056d30b551715c
1 parent
d923574e
Exists in
master
and in
1 other branch
update connection
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
ais-structure/src/modules/helper/connection.js
... | ... | @@ -64,7 +64,7 @@ connection.requestSoapToSACF = async function (soap,cmd,myMethod) { |
64 | 64 | // stats.receiveResponse(service.Name,cmd,constants.ERROR); |
65 | 65 | // } |
66 | 66 | |
67 | - return checkResponse(result);; | |
67 | + return checkResponse(result,service);; | |
68 | 68 | }; |
69 | 69 | |
70 | 70 | connection.requestJsonToD01 = async function (obj,cmd,myMethod) { |
... | ... | @@ -227,7 +227,7 @@ connection.requestJsonToD01 = async function (obj,cmd,myMethod) { |
227 | 227 | |
228 | 228 | // } |
229 | 229 | |
230 | - return checkResponse(result); | |
230 | + return checkResponse(result,service); | |
231 | 231 | |
232 | 232 | |
233 | 233 | }; |
... | ... | @@ -490,7 +490,7 @@ function arrayUrl(arrUrl,url,filter,fields,freeSpace,arrData) |
490 | 490 | return arrUrl; |
491 | 491 | } |
492 | 492 | |
493 | -function checkResponse(result) | |
493 | +function checkResponse(result,service) | |
494 | 494 | { |
495 | 495 | if(result.err) |
496 | 496 | { | ... | ... |