feat(Strava Node): Add hide_from_home field in Activity Update (#5883)
This commit is contained in:
@@ -233,6 +233,13 @@ export const activityFields: INodeProperties[] = [
|
|||||||
description:
|
description:
|
||||||
'Identifier for the gear associated with the activity. ‘none’ clears gear from activity.',
|
'Identifier for the gear associated with the activity. ‘none’ clears gear from activity.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Mute activity',
|
||||||
|
name: 'hide_from_home',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'Do not publish to Home or Club feeds',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Name',
|
displayName: 'Name',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@@ -161,14 +161,6 @@ export class Strava implements INodeType {
|
|||||||
|
|
||||||
const updateFields = this.getNodeParameter('updateFields', i);
|
const updateFields = this.getNodeParameter('updateFields', i);
|
||||||
|
|
||||||
if (updateFields.trainer === true) {
|
|
||||||
updateFields.trainer = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (updateFields.commute === true) {
|
|
||||||
updateFields.commute = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
const body: IDataObject = {};
|
const body: IDataObject = {};
|
||||||
|
|
||||||
Object.assign(body, updateFields);
|
Object.assign(body, updateFields);
|
||||||
|
|||||||
Reference in New Issue
Block a user