Skip to content

Commit

Permalink
fix masterSlaveApps
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Feb 14, 2024
1 parent 6fd3af5 commit c164ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -10808,13 +10808,13 @@ async function masterSlaveApps() {
if (installedApp.version <= 3) {
identifier = installedApp.name;
appId = dockerService.getAppIdentifier(identifier);
needsToBeChecked = installedApp.containerData.includes('g:') && receiveOnlySyncthingAppsCache.get(appId).restarted;
needsToBeChecked = installedApp.containerData.includes('g:') && receiveOnlySyncthingAppsCache.has(appId) && receiveOnlySyncthingAppsCache.get(appId).restarted;
} else {
const componentUsingMasterSlave = installedApp.compose.find((comp) => comp.containerData.includes('g:'));
if (componentUsingMasterSlave) {
identifier = `${componentUsingMasterSlave.name}_${installedApp.name}`;
appId = dockerService.getAppIdentifier(identifier);
needsToBeChecked = receiveOnlySyncthingAppsCache.get(appId).restarted;
needsToBeChecked = receiveOnlySyncthingAppsCache.has(appId) && receiveOnlySyncthingAppsCache.get(appId).restarted;
}
}
if (needsToBeChecked) {
Expand Down

0 comments on commit c164ff7

Please sign in to comment.