From 46400ca318efa3bc68e23992e2063131c64626b8 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 30 May 2025 21:27:23 -0600 Subject: [PATCH] Make the migrationCheck methods synchronous --- module/utils/databases/Database.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/utils/databases/Database.mjs b/module/utils/databases/Database.mjs index 7d7a592..1a55f62 100644 --- a/module/utils/databases/Database.mjs +++ b/module/utils/databases/Database.mjs @@ -261,7 +261,7 @@ export class Database { * * @returns {boolean} */ - static async canPerformMigration() { + static canPerformMigration() { // TODO: this *must* account for isActiveGM, because otherwise the // world setting cannot be updated after the migration finishes. return game.user.isActiveGM; @@ -274,7 +274,7 @@ export class Database { * @param {string} lastVersion The version that was last active * @returns {boolean} */ - static async requiresMigrationFrom(lastVersion) { + static requiresMigrationFrom(lastVersion) { return foundry.utils.isNewerVersion(__VERSION__, lastVersion); };