mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-29 10:13:05 +03:00
Use invalid field input error for invalid object metadata input (#6083)
As title
This commit is contained in:
parent
fbbcdb20e5
commit
bb627a91e2
@ -97,7 +97,7 @@ export class FieldMetadataService extends TypeOrmQueryService<FieldMetadataEntit
|
|||||||
if (!objectMetadata) {
|
if (!objectMetadata) {
|
||||||
throw new FieldMetadataException(
|
throw new FieldMetadataException(
|
||||||
'Object metadata does not exist',
|
'Object metadata does not exist',
|
||||||
FieldMetadataExceptionCode.OBJECT_METADATA_NOT_FOUND,
|
FieldMetadataExceptionCode.INVALID_FIELD_INPUT,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user