Use invalid field input error for invalid object metadata input (#6083)

As title
This commit is contained in:
Thomas Trompette 2024-07-01 16:33:48 +02:00 committed by GitHub
parent fbbcdb20e5
commit bb627a91e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,7 +97,7 @@ export class FieldMetadataService extends TypeOrmQueryService<FieldMetadataEntit
if (!objectMetadata) {
throw new FieldMetadataException(
'Object metadata does not exist',
FieldMetadataExceptionCode.OBJECT_METADATA_NOT_FOUND,
FieldMetadataExceptionCode.INVALID_FIELD_INPUT,
);
}