From 2ac4e425d681c3147067c176c54cdef04ef16f10 Mon Sep 17 00:00:00 2001 From: MedAliMarz Date: Wed, 19 May 2021 02:33:43 +0200 Subject: [PATCH] :zap: Fix activity type in post operation on Orbit Node (#1796) --- packages/nodes-base/nodes/Orbit/Orbit.node.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nodes-base/nodes/Orbit/Orbit.node.ts b/packages/nodes-base/nodes/Orbit/Orbit.node.ts index 6059c0cfc4..de80e61123 100644 --- a/packages/nodes-base/nodes/Orbit/Orbit.node.ts +++ b/packages/nodes-base/nodes/Orbit/Orbit.node.ts @@ -414,10 +414,12 @@ export class Orbit implements INodeType { const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; const body: IDataObject = { type: 'post', + activity_type: 'post', url, }; if (additionalFields.publishedAt) { body.occurred_at = additionalFields.publishedAt as string; + delete body.publishedAt; } responseData = await orbitApiRequest.call(this, 'POST', `/${workspaceId}/members/${memberId}/activities/`, body);