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 8004a17 commit 55498e4
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -10405,10 +10405,13 @@ async function syncthingApps() {
if (cache.numberOfExecutions === cache.numberOfExecutionsRequired) {
syncthingFolder.type = 'sendreceive';
} else if (cache.numberOfExecutions === cache.numberOfExecutionsRequired + 1) {
log.info(`SyncthingApps starting appIdentifier ${appId}`);
log.info(`SyncthingApps changing syncthing type to sendreceive for appIdentifier ${appId}`);
syncthingFolder.type = 'sendreceive';
// eslint-disable-next-line no-await-in-loop
await appDockerRestart(id);
if (containerDataFlags.includes('r')) {
log.info(`SyncthingApps starting appIdentifier ${appId}`);
// eslint-disable-next-line no-await-in-loop
await appDockerRestart(id);
}
cache.restarted = true;
}
receiveOnlySyncthingAppsCache.set(appId, cache);
Expand Down Expand Up @@ -10581,8 +10584,11 @@ async function syncthingApps() {
} else if (cache.numberOfExecutions === cache.numberOfExecutionsRequired + 1) {
log.info(`SyncthingApps starting appIdentifier ${appId}`);
syncthingFolder.type = 'sendreceive';
// eslint-disable-next-line no-await-in-loop
await appDockerRestart(id);
if (containerDataFlags.includes('r')) {
log.info(`SyncthingApps starting appIdentifier ${appId}`);
// eslint-disable-next-line no-await-in-loop
await appDockerRestart(id);
}
cache.restarted = true;
}
receiveOnlySyncthingAppsCache.set(appId, cache);
Expand Down

0 comments on commit 55498e4

Please sign in to comment.