Skip to content

Commit 2666517

Browse files
committed
fix: ensure base types like Note are migrated
1 parent e844ec8 commit 2666517

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/core/config/migrate-add-entity-attributes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { EntityConfig } from "../entity/entity-config";
44
export function migrateAddMissingEntityAttributes(config: Config): Config {
55
for (let entityType of Object.keys(DEFAULT_ENTITIES)) {
66
// TODO: just blindly save all hard-coded fields into the entity config? or scan which ones are actually used?!
7-
if (!JSON.stringify(config).includes(`"${entityType}"`)) {
7+
if (
8+
!JSON.stringify(config).includes(`"${entityType}"`) ||
9+
["Note", "User"].includes(entityType)
10+
) {
811
// don't add config if the entity is never explicitly used or referenced
912
continue;
1013
}

0 commit comments

Comments
 (0)