Skip to content

Commit eb6b42c

Browse files
committed
Fix syntax error at migrations.
Thanks to xet7 !
1 parent 679d210 commit eb6b42c

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

server/cronMigrationManager.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -447,19 +447,18 @@ class CronMigrationManager {
447447
const { name, duration } = stepData;
448448

449449
// Simulate step execution with progress updates for other migrations
450-
const progressSteps = 10;
451-
for (let i = 0; i <= progressSteps; i++) {
452-
const progress = Math.round((i / progressSteps) * 100);
453-
454-
// Update step progress
455-
cronJobStorage.saveJobStep(jobId, stepIndex, {
456-
progress,
457-
currentAction: `Executing: ${name} (${progress}%)`
458-
});
459-
460-
// Simulate work
461-
await new Promise(resolve => setTimeout(resolve, duration / progressSteps));
462-
}
450+
const progressSteps = 10;
451+
for (let i = 0; i <= progressSteps; i++) {
452+
const progress = Math.round((i / progressSteps) * 100);
453+
454+
// Update step progress
455+
cronJobStorage.saveJobStep(jobId, stepIndex, {
456+
progress,
457+
currentAction: `Executing: ${name} (${progress}%)`
458+
});
459+
460+
// Simulate work
461+
await new Promise(resolve => setTimeout(resolve, duration / progressSteps));
463462
}
464463
}
465464

0 commit comments

Comments
 (0)