Skip to content

Commit

Permalink
fix: error if attributes key is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal committed Feb 9, 2024
1 parent 7ee2da6 commit 16acba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migration/migration.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class MigrationController {
: {};
}
const entityObj = updatedEntities[entity];
Object.entries(entityConfig.attributes)
Object.entries(entityConfig.attributes ?? {})
.filter(
([, schema]) =>
schema.dataType === 'entity' ||
Expand Down

0 comments on commit 16acba8

Please sign in to comment.