Commit 8c0974e1 authored by bitsoko services's avatar bitsoko services 👷🏿

Update enterpriseFunctions.js

parent 9b486587
Pipeline #1884 canceled with stage
......@@ -388,6 +388,7 @@ var siteInterfaces = await exports.httpGet(mainDomain+'/doocaOrgSiteInt?org='+or
ifs = JSON.parse(siteInterfaces).interfaces;
var units = [];
for(var i in ifs){
// 0 position is the port of the incoming wan
......@@ -403,9 +404,19 @@ for(var i in ifs){
console.log(parsedInf);
ifs[i].dooca = parsedInf;
//ifs[i].dooca = parsedInf;
units.push(parsedInf);
}
units = units.filter(obj => {
// matches++
// return only unoccupied units
return obj.vacant;
});
try{
......@@ -525,7 +536,7 @@ var source = fs.readFileSync(pugFile,
theme: allInfo.theme,
doocaPlans: orgPlan,
coverDisabled: allInfo.coverDisabled,
units: ifs,
units: units,
tagline: allInfo.tagline,
socialLinks: ['/bits/images/facebook.png', '/bits/images/twitter.png', '/bits/images/linkedin.png'],
reviews: [{
......
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