fix champs personnalisé update
This commit is contained in:
@@ -54,7 +54,13 @@ export function useCustomFields () {
|
||||
}
|
||||
|
||||
// Créer ou mettre à jour une valeur de champ personnalisé
|
||||
const upsertCustomFieldValue = async (customFieldId, entityType, entityId, value) => {
|
||||
const upsertCustomFieldValue = async (
|
||||
customFieldId,
|
||||
entityType,
|
||||
entityId,
|
||||
value,
|
||||
metadata = {},
|
||||
) => {
|
||||
try {
|
||||
const result = await apiCall('/custom-fields/values/upsert', {
|
||||
method: 'POST',
|
||||
@@ -62,7 +68,8 @@ export function useCustomFields () {
|
||||
customFieldId,
|
||||
entityType,
|
||||
entityId,
|
||||
value
|
||||
value,
|
||||
...metadata
|
||||
})
|
||||
})
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user