Commit d75de0de42f7158be9213b69fca04cf59badb64b

Authored by Nattapon Wongpaet
1 parent 854830af
Exists in master and in 1 other branch dev

fix timeout

ais-structure/src/modules/helper/connection.js
... ... @@ -14,7 +14,7 @@ connection.requestSoapToSACF = async function (soap,cmd,myMethod) {
14 14 url : cfg.service.SACF[myMethod+"_"+cmd+"_URL"],
15 15 body : messageSOAP.objectToSOAP(soap,cmd),
16 16 method : myMethod,
17   - timeout : cfg.service.SACF[myMethod+"_"+cmd+"_Timeout"]
  17 + timeout : cfg.service.SACF[myMethod+"_"+cmd+"_Timeout"]*1000
18 18 }
19 19  
20 20 stats.sendSACFRequest(cfg.service.SACF.Name,cmd)
... ... @@ -31,7 +31,7 @@ connection.requestJsonToD01 = async function (obj,cmd,myMethod) {
31 31 url : service[myMethod+"_"+cmd+"_URL"],
32 32 body : obj,
33 33 method : myMethod,
34   - timeout : service[myMethod+"_"+cmd+"_Timeout"]
  34 + timeout : service[myMethod+"_"+cmd+"_Timeout"]*1000
35 35 }
36 36  
37 37 var result = {};
... ...