Make the migrationCheck methods synchronous
This commit is contained in:
parent
5c1a332921
commit
46400ca318
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue