Browse Source

fix: fixed issue with empty changes in convert schemas

Kristian Vos 4 năm trước cách đây
mục cha
commit
fddffa230c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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."); }