Prevent opened board re-migrating and reloading every 5 seconds.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-10-21 14:12:12 +03:00
parent ef7771febb
commit 4987a95d8e
3 changed files with 59 additions and 3 deletions

View file

@ -646,6 +646,23 @@ class MigrationManager {
}
}
/**
* Fix boards that are stuck in migration loop
*/
fixStuckBoards() {
try {
Meteor.call('boardMigration.fixStuckBoards', (error, result) => {
if (error) {
console.error('Failed to fix stuck boards:', error);
} else {
console.log('Fix stuck boards result:', result);
}
});
} catch (error) {
console.error('Error fixing stuck boards:', error);
}
}
/**
* Start migration process using cron system
*/