mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
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:
|
||||
'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);
|
||||
|
||||
Reference in New Issue
Block a user