Seed morph metadata (#14149)
in thie PR we create the tooling to allow the relation and morph relation creation during the seed process. We use the ObjectMetadataMaps in order to fasten the process Fixes https://github.com/twentyhq/core-team-issues/issues/1179
This commit is contained in:
+4
@@ -83,6 +83,10 @@ export const fromCachedFieldMetadataEntityToFlatFieldMetadata = <
|
||||
!isCachedFieldMetadataEntityOfType(
|
||||
relationTargetCachedFieldMetadata,
|
||||
FieldMetadataType.RELATION,
|
||||
) &&
|
||||
!isCachedFieldMetadataEntityOfType(
|
||||
relationTargetCachedFieldMetadata,
|
||||
FieldMetadataType.MORPH_RELATION,
|
||||
)
|
||||
) {
|
||||
throw new WorkspaceMetadataCacheException(
|
||||
|
||||
Reference in New Issue
Block a user