mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Prevent opened board re-migrating and reloading every 5 seconds.
Thanks to xet7 !
This commit is contained in:
parent
ef7771febb
commit
4987a95d8e
3 changed files with 59 additions and 3 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue