diff --git a/src/module/migrations/004.ts b/src/module/migrations/004.ts index 540f0390..5f09a60a 100644 --- a/src/module/migrations/004.ts +++ b/src/module/migrations/004.ts @@ -115,6 +115,7 @@ async function migrateCompendium(compendium: Compendium) { if (!["Actor", "Item", "Scene"].includes(entityName)) return; const wasLocked = compendium.locked; await compendium.configure({ locked: false }); + await compendium.migrate({}); const content = await compendium.getContent(); @@ -141,6 +142,5 @@ async function migrateCompendium(compendium: Compendium) { } } - await compendium.migrate({}); await compendium.configure({ locked: wasLocked }); }