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:
@ -17,12 +17,10 @@ export class CreateRecordWorkflowAction implements WorkflowAction {
|
|||||||
workflowActionInput.objectName,
|
workflowActionInput.objectName,
|
||||||
);
|
);
|
||||||
|
|
||||||
const objectRecord = await repository.create(
|
const objectRecord = await repository.save(
|
||||||
workflowActionInput.objectRecord,
|
workflowActionInput.objectRecord,
|
||||||
);
|
);
|
||||||
|
|
||||||
await repository.save(objectRecord);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
result: objectRecord,
|
result: objectRecord,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user