Skip to content

Commit

Permalink
fix: do not load groups on restore
Browse files Browse the repository at this point in the history
Signed-off-by: Raúl Fernández Fernández <[email protected]>
  • Loading branch information
rfdez committed Sep 26, 2023
1 parent f45721f commit d61cde8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions nodes/Splitwise/GroupDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const sharedGroupFields: INodeProperties[] = [
displayOptions: {
show: {
resource: ['group'],
operation: ['delete', 'get', 'restore'],
operation: ['delete', 'get'],
},
},
typeOptions: {
Expand All @@ -75,4 +75,26 @@ const sharedGroupFields: INodeProperties[] = [
},
];

export const groupFields: INodeProperties[] = [...sharedGroupFields];
const restoreGroupFields: INodeProperties[] = [
{
displayName: 'Group ID',
name: 'id',
type: 'number',
description: 'ID of the group',
default: 0,
required: true,
displayOptions: {
show: {
resource: ['group'],
operation: ['restore'],
},
},
typeOptions: {
minValue: 0,
numberStepSize: 1,
numberPrecision: 0,
},
},
];

export const groupFields: INodeProperties[] = [...sharedGroupFields, ...restoreGroupFields];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rfdez/n8n-nodes-splitwise",
"version": "0.6.0",
"version": "0.6.1",
"description": "n8n community node to consume the Splitwise API",
"keywords": [
"n8n-community-node-package"
Expand Down

0 comments on commit d61cde8

Please sign in to comment.