Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
business
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
business
Commits
8c0974e1
Commit
8c0974e1
authored
Dec 21, 2023
by
bitsoko services
👷🏿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update enterpriseFunctions.js
parent
9b486587
Pipeline
#1884
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
enterpriseFunctions.js
libs/enterpriseFunctions.js
+14
-3
No files found.
libs/enterpriseFunctions.js
View file @
8c0974e1
...
...
@@ -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
:
if
s
,
units
:
unit
s
,
tagline
:
allInfo
.
tagline
,
socialLinks
:
[
'/bits/images/facebook.png'
,
'/bits/images/twitter.png'
,
'/bits/images/linkedin.png'
],
reviews
:
[{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment