Skip to content

Commit

Permalink
fix app spawning on nodes without any app running
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Mar 24, 2022
1 parent c0e322a commit 4db15e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -3564,6 +3564,9 @@ async function assignedPortsGlobalApps(appNames) {
name: app,
});
});
if (!appsQuery.length) {
return [];
}
const query = {
$or: appsQuery,
};
Expand Down Expand Up @@ -3603,7 +3606,7 @@ async function assignedPortsGlobalApps(appNames) {

async function ensureApplicationPortsNotUsed(appSpecFormatted, globalCheckedApps) {
let currentAppsPorts = await assignedPortsInstalledApps();
if (globalCheckedApps) {
if (globalCheckedApps && globalCheckedApps.length) {
const globalAppsPorts = await assignedPortsGlobalApps(globalCheckedApps);
currentAppsPorts = currentAppsPorts.concat(globalAppsPorts);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flux",
"version": "3.13.0",
"version": "3.14.0",
"description": "Flux, Your Gateway to a Decentralized World",
"repository": {
"type": "git",
Expand Down

0 comments on commit 4db15e3

Please sign in to comment.