Fix migration of compendiums

This commit is contained in:
Johannes Loher 2021-02-21 04:05:50 +01:00
parent 343a888b68
commit 5d249d4c10

View file

@ -107,7 +107,6 @@ async function migrateCompendium(compendium: Compendium) {
const wasLocked = compendium.locked; const wasLocked = compendium.locked;
await compendium.configure({ locked: false }); await compendium.configure({ locked: false });
await compendium.migrate({});
const content = await compendium.getContent(); const content = await compendium.getContent();
for (const entity of content) { for (const entity of content) {
@ -133,5 +132,6 @@ async function migrateCompendium(compendium: Compendium) {
} }
} }
await compendium.migrate({});
await compendium.configure({ locked: wasLocked }); await compendium.configure({ locked: wasLocked });
} }