Make the migrationCheck methods synchronous

This commit is contained in:
Oliver-Akins 2025-05-30 21:27:23 -06:00
parent 5c1a332921
commit 46400ca318

View file

@ -261,7 +261,7 @@ export class Database {
* *
* @returns {boolean} * @returns {boolean}
*/ */
static async canPerformMigration() { static canPerformMigration() {
// TODO: this *must* account for isActiveGM, because otherwise the // TODO: this *must* account for isActiveGM, because otherwise the
// world setting cannot be updated after the migration finishes. // world setting cannot be updated after the migration finishes.
return game.user.isActiveGM; return game.user.isActiveGM;
@ -274,7 +274,7 @@ export class Database {
* @param {string} lastVersion The version that was last active * @param {string} lastVersion The version that was last active
* @returns {boolean} * @returns {boolean}
*/ */
static async requiresMigrationFrom(lastVersion) { static requiresMigrationFrom(lastVersion) {
return foundry.utils.isNewerVersion(__VERSION__, lastVersion); return foundry.utils.isNewerVersion(__VERSION__, lastVersion);
}; };