mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
feat(Strava Node): Add hide_from_home field in Activity Update (#5883)
This commit is contained in:
parent
225e849960
commit
7495e31a5b
|
@ -233,6 +233,13 @@ export const activityFields: INodeProperties[] = [
|
|||
description:
|
||||
'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',
|
||||
name: 'name',
|
||||
|
|
|
@ -161,14 +161,6 @@ export class Strava implements INodeType {
|
|||
|
||||
const updateFields = this.getNodeParameter('updateFields', i);
|
||||
|
||||
if (updateFields.trainer === true) {
|
||||
updateFields.trainer = 1;
|
||||
}
|
||||
|
||||
if (updateFields.commute === true) {
|
||||
updateFields.commute = 1;
|
||||
}
|
||||
|
||||
const body: IDataObject = {};
|
||||
|
||||
Object.assign(body, updateFields);
|
||||
|
|
Loading…
Reference in a new issue