mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix syntax error at migrations.
Thanks to xet7 !
This commit is contained in:
parent
679d210667
commit
eb6b42c4c9
1 changed files with 12 additions and 13 deletions
|
|
@ -447,19 +447,18 @@ class CronMigrationManager {
|
||||||
const { name, duration } = stepData;
|
const { name, duration } = stepData;
|
||||||
|
|
||||||
// Simulate step execution with progress updates for other migrations
|
// Simulate step execution with progress updates for other migrations
|
||||||
const progressSteps = 10;
|
const progressSteps = 10;
|
||||||
for (let i = 0; i <= progressSteps; i++) {
|
for (let i = 0; i <= progressSteps; i++) {
|
||||||
const progress = Math.round((i / progressSteps) * 100);
|
const progress = Math.round((i / progressSteps) * 100);
|
||||||
|
|
||||||
// Update step progress
|
// Update step progress
|
||||||
cronJobStorage.saveJobStep(jobId, stepIndex, {
|
cronJobStorage.saveJobStep(jobId, stepIndex, {
|
||||||
progress,
|
progress,
|
||||||
currentAction: `Executing: ${name} (${progress}%)`
|
currentAction: `Executing: ${name} (${progress}%)`
|
||||||
});
|
});
|
||||||
|
|
||||||
// Simulate work
|
// Simulate work
|
||||||
await new Promise(resolve => setTimeout(resolve, duration / progressSteps));
|
await new Promise(resolve => setTimeout(resolve, duration / progressSteps));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue