Commit 23fec3d4d74f8baae7a15fe4876d2537f8ff86d6

Authored by Nattapon Wongpaet
1 parent 50bfb67a
Exists in master and in 1 other branch dev

fix bug

ais-structure/src/modules/helper/connection.js
@@ -64,7 +64,7 @@ connection.requestSoapToSACF = async function (soap,cmd,myMethod) { @@ -64,7 +64,7 @@ connection.requestSoapToSACF = async function (soap,cmd,myMethod) {
64 // stats.receiveResponse(service.Name,cmd,constants.ERROR); 64 // stats.receiveResponse(service.Name,cmd,constants.ERROR);
65 // } 65 // }
66 66
67 - return checkResponse(result,service);; 67 + return checkResponse(result,service,params,cmd);
68 }; 68 };
69 69
70 connection.requestJsonToD01 = async function (obj,cmd,myMethod) { 70 connection.requestJsonToD01 = async function (obj,cmd,myMethod) {
@@ -227,7 +227,7 @@ 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,service); 230 + return checkResponse(result,service,params,cmd);
231 231
232 232
233 }; 233 };
@@ -490,7 +490,7 @@ function arrayUrl(arrUrl,url,filter,fields,freeSpace,arrData) @@ -490,7 +490,7 @@ function arrayUrl(arrUrl,url,filter,fields,freeSpace,arrData)
490 return arrUrl; 490 return arrUrl;
491 } 491 }
492 492
493 -function checkResponse(result,service) 493 +function checkResponse(result,service,params,cmd)
494 { 494 {
495 if(result.err) 495 if(result.err)
496 { 496 {