Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RunOnFluxBot committed Jan 18, 2024
1 parent 3e7ad8f commit 0d20027
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -3364,11 +3364,8 @@ async function registerAppLocally(appSpecs, componentSpecs, res) {
}

if (!isComponent) {
// last character of appName determines gateway
const lastCharCode = appName.charCodeAt(appName.length - 1);

const dockerNetworkAddrValue = lastCharCode;

// eslint-disable-next-line no-use-before-define
const dockerNetworkAddrValue = await getRunningAppList(appName).length + 1;
const fluxNetworkStatus = {
status: `Checking Flux App network of ${appName}...`,
};
Expand Down Expand Up @@ -3738,10 +3735,8 @@ async function softRegisterAppLocally(appSpecs, componentSpecs, res) {
}

if (!isComponent) {
// last character of appName determines gateway
const lastCharCode = appName.charCodeAt(appName.length - 1);

const dockerNetworkAddrValue = lastCharCode;
// eslint-disable-next-line no-use-before-define
const dockerNetworkAddrValue = await getRunningAppList(appName).length + 1;

const fluxNetworkStatus = {
status: `Checking Flux App network of ${appName}...`,
Expand Down

0 comments on commit 0d20027

Please sign in to comment.