feat(Strava Node): Add hide_from_home field in Activity Update (#5883)

This commit is contained in:
ZergRael 2023-07-04 16:48:33 +02:00 committed by GitHub
parent 225e849960
commit 7495e31a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View file

@ -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',

View file

@ -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);