Explorar o código

fix: fixed issue with empty changes in convert schemas

Kristian Vos %!s(int64=4) %!d(string=hai) anos
pai
achega
fddffa230c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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."); }