mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Fix activity type in post operation on Orbit Node (#1796)
This commit is contained in:
@@ -414,10 +414,12 @@ export class Orbit implements INodeType {
|
|||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
|
activity_type: 'post',
|
||||||
url,
|
url,
|
||||||
};
|
};
|
||||||
if (additionalFields.publishedAt) {
|
if (additionalFields.publishedAt) {
|
||||||
body.occurred_at = additionalFields.publishedAt as string;
|
body.occurred_at = additionalFields.publishedAt as string;
|
||||||
|
delete body.publishedAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
responseData = await orbitApiRequest.call(this, 'POST', `/${workspaceId}/members/${memberId}/activities/`, body);
|
responseData = await orbitApiRequest.call(this, 'POST', `/${workspaceId}/members/${memberId}/activities/`, body);
|
||||||
|
|||||||
Reference in New Issue
Block a user