mirror of
https://github.com/lingble/twenty.git
synced 2025-10-30 12:22:29 +00:00
Fix restApi should not use TS_VECTOR fields as mutation inputs (#7484)
## Context <img width="398" alt="Screenshot 2024-10-08 at 11 10 59" src="https://github.com/user-attachments/assets/03ee0305-527c-42ed-a8a1-0ccea8176357"> <img width="489" alt="Screenshot 2024-10-08 at 11 10 50" src="https://github.com/user-attachments/assets/1403876b-40b6-490e-8557-d8280c439d57"> Tested with https://twenty.com/developers/rest-api/core#/operations/createOnePerson
This commit is contained in:
@@ -109,7 +109,8 @@ const getSchemaComponentsProperties = ({
|
|||||||
return item.fields.reduce((node, field) => {
|
return item.fields.reduce((node, field) => {
|
||||||
if (
|
if (
|
||||||
!isFieldAvailable(field, forResponse) ||
|
!isFieldAvailable(field, forResponse) ||
|
||||||
field.type === FieldMetadataType.RELATION
|
field.type === FieldMetadataType.RELATION ||
|
||||||
|
field.type === FieldMetadataType.TS_VECTOR
|
||||||
) {
|
) {
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user