Browse Source

fix: fixed issue with empty changes in convert schemas

Kristian Vos 4 years ago
parent
commit
fddffa230c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      backend/logic/account.js

+ 1 - 0
backend/logic/account.js

@@ -96,6 +96,7 @@ module.exports = class extends coreClass {
 
 			let convertSchema;
 			try { convertSchema = await this.convertSchemaModule.getForVersion(oldAccount.version); } catch(err) { reject(err); }
+			if (!convertSchema.changes) convertSchema.changes = {};
 
 			let oldSchema;
 			try { oldSchema = await this.accountSchemaModule.getByVersion(convertSchema.versionFrom); } catch  { return reject("Couldn't get from schema."); }