mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +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;
|
||||
|
||||
// Simulate step execution with progress updates for other migrations
|
||||
const progressSteps = 10;
|
||||
for (let i = 0; i <= progressSteps; i++) {
|
||||
const progress = Math.round((i / progressSteps) * 100);
|
||||
|
||||
// Update step progress
|
||||
cronJobStorage.saveJobStep(jobId, stepIndex, {
|
||||
progress,
|
||||
currentAction: `Executing: ${name} (${progress}%)`
|
||||
});
|
||||
|
||||
// Simulate work
|
||||
await new Promise(resolve => setTimeout(resolve, duration / progressSteps));
|
||||
}
|
||||
const progressSteps = 10;
|
||||
for (let i = 0; i <= progressSteps; i++) {
|
||||
const progress = Math.round((i / progressSteps) * 100);
|
||||
|
||||
// Update step progress
|
||||
cronJobStorage.saveJobStep(jobId, stepIndex, {
|
||||
progress,
|
||||
currentAction: `Executing: ${name} (${progress}%)`
|
||||
});
|
||||
|
||||
// Simulate work
|
||||
await new Promise(resolve => setTimeout(resolve, duration / progressSteps));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue