Fix composite field creation (#9044)

- composite field need to be formatted before being saved
- repository.create() does not do it. So we simply lose the composite
fields on the way
- save() does it directly and doing create() before does not change
anything
This commit is contained in:
Thomas Trompette
2024-12-12 17:34:56 +01:00
committed by GitHub
parent 77c2961912
commit 2990d23411

View File

@ -17,12 +17,10 @@ export class CreateRecordWorkflowAction implements WorkflowAction {
workflowActionInput.objectName,
);
const objectRecord = await repository.create(
const objectRecord = await repository.save(
workflowActionInput.objectRecord,
);
await repository.save(objectRecord);
return {
result: objectRecord,
};