mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
⚡ Fix activity type in post operation on Orbit Node (#1796)
This commit is contained in:
parent
76e1b9fba0
commit
2ac4e425d6
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue