Commit bb21fa49 authored by bitsoko services's avatar bitsoko services 👷🏿

Update app.js

parent 6669db35
Pipeline #1805 canceled with stage
......@@ -415,18 +415,21 @@ async function loadMainDomain(url){
var response = await entFunc.httpGet(url);
try{
var parsedResp = JSON.parse(response);
writeFile(__dirname + '/config/soko.conf', response, function(err) {
if (err) console.log('!ERR unable backup enterprise info', err);
try{
procEntInfo(JSON.parse(response), accountObject);
}catch(er){
procEntInfo(parsedResp, accountObject);
});
}catch(er){
fs.readFile(__dirname + '/config/soko.conf', function (error, source) {
if(error){
......@@ -448,10 +451,7 @@ async function loadMainDomain(url){
});
}
});
}
//})(dmnIP);
......
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