Replace ObjectMetadataInterface by ObjectMetadataEntity (#13317)
# Introduction Following https://github.com/twentyhq/twenty/pull/13310 > After this PR merge will create a new one removing the type and replacing it to ObjectMetadataEntity. This is it !
This commit is contained in:
+2
-3
@@ -1,12 +1,11 @@
|
||||
import { ObjectMetadataInterface } from 'src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface';
|
||||
|
||||
import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity';
|
||||
import {
|
||||
ObjectMetadataException,
|
||||
ObjectMetadataExceptionCode,
|
||||
} from 'src/engine/metadata-modules/object-metadata/object-metadata.exception';
|
||||
|
||||
export const assertMutationNotOnRemoteObject = (
|
||||
objectMetadataItem: Pick<ObjectMetadataInterface, 'isRemote'>,
|
||||
objectMetadataItem: Pick<ObjectMetadataEntity, 'isRemote'>,
|
||||
) => {
|
||||
if (objectMetadataItem.isRemote) {
|
||||
throw new ObjectMetadataException(
|
||||
|
||||
Reference in New Issue
Block a user