fix migrations applying over and over

This commit is contained in:
Henry Jameson 2025-04-09 00:02:45 +03:00
commit 540ea2f3c0

View file

@ -641,7 +641,8 @@ const users = {
declarations
.filter(x => {
return x.store === 'server-side' &&
(x.migrationNum ?? x.migrationNum > configMigration)
x.migrationNum > 0 &&
x.migrationNum > configMigration
})
.toSorted((a, b) => a.configMigration - b.configMigration)
.forEach(value => {