mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +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
|
|
@ -607,11 +607,12 @@ class CronMigrationManager {
|
|||
*/
|
||||
markBoardAsMigrated(boardId, migrationType) {
|
||||
try {
|
||||
// Update board with migration markers
|
||||
// Update board with migration markers and version
|
||||
const updateQuery = {
|
||||
'migrationMarkers.fullMigrationCompleted': true,
|
||||
'migrationMarkers.lastMigration': new Date(),
|
||||
'migrationMarkers.migrationType': migrationType
|
||||
'migrationMarkers.migrationType': migrationType,
|
||||
'migrationVersion': 1 // Set migration version to prevent re-migration
|
||||
};
|
||||
|
||||
// Update the board document
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue