feat: display warning for migration errors
This commit is contained in:
parent
d555f0fdf4
commit
4ed292f6c0
13 changed files with 126 additions and 49 deletions
|
@ -12,9 +12,10 @@ import {
|
|||
|
||||
/** @type {import("./migration.js").Migration["migrate"]} */
|
||||
async function migrate() {
|
||||
await migrateCollection(game.actors, migrateActor);
|
||||
await migrateCollection(game.scenes, migrateScene);
|
||||
await migrateCompendiums(migrateCompendium);
|
||||
const actorsResult = await migrateCollection(game.actors, migrateActor);
|
||||
const scenesResult = await migrateCollection(game.scenes, migrateScene);
|
||||
const compendiumsResult = await migrateCompendiums(migrateCompendium);
|
||||
return actorsResult === "error" || scenesResult === "error" || compendiumsResult === "error" ? "error" : "success";
|
||||
}
|
||||
|
||||
const itemIdRegex = /Item\.([a-zA-Z0-9]+)/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue