diff --git a/packages/nodes-base/nodes/Spontit/GenericFunctions.ts b/packages/nodes-base/nodes/Spontit/GenericFunctions.ts index 993ede1b961..cce7ccfc296 100644 --- a/packages/nodes-base/nodes/Spontit/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Spontit/GenericFunctions.ts @@ -46,4 +46,4 @@ export async function spontitApiRequest(this: IExecuteFunctions | ILoadOptionsFu } throw error; } -} \ No newline at end of file +} diff --git a/packages/nodes-base/nodes/Spontit/PushDescription.ts b/packages/nodes-base/nodes/Spontit/PushDescription.ts index bbb6075e6b7..431b567300a 100644 --- a/packages/nodes-base/nodes/Spontit/PushDescription.ts +++ b/packages/nodes-base/nodes/Spontit/PushDescription.ts @@ -21,7 +21,7 @@ export const pushOperations = [ description: 'Create a push notification', }, ], - default: 'push', + default: 'create', description: 'The operation to perform.', }, ] as INodeProperties[]; @@ -144,6 +144,13 @@ export const pushFields = [ If one of the userIds supplied does not follow the specified channel, then that userId value will be ignored.
See the "Followers" section to learn how to list the userIds of those who follow one of your channels.`, }, + { + displayName: 'Schedule', + name: 'schedule', + type: 'dateTime', + default: '', + description: 'A Unix timestamp. Schedule a push to be sent at a later date and time.', + }, { displayName: 'Subtitle', name: 'subtitle', @@ -158,13 +165,6 @@ export const pushFields = [ default: '', description: 'The title of push. Appears in bold at the top. Limited to 100 characters.', }, - { - displayName: 'Schedule', - name: 'schedule', - type: 'dateTime', - default: '', - description: 'A Unix timestamp. Schedule a push to be sent at a later date and time.', - }, ], }, ] as INodeProperties[]; diff --git a/packages/nodes-base/nodes/Spontit/Spontit.node.ts b/packages/nodes-base/nodes/Spontit/Spontit.node.ts index 72fd75d5964..0f8dd607944 100644 --- a/packages/nodes-base/nodes/Spontit/Spontit.node.ts +++ b/packages/nodes-base/nodes/Spontit/Spontit.node.ts @@ -105,7 +105,6 @@ export class Spontit implements INodeType { } if (Array.isArray(responseData)) { returnData.push.apply(returnData, responseData as IDataObject[]); - } else if (responseData !== undefined) { returnData.push(responseData as IDataObject); } diff --git a/packages/nodes-base/nodes/Spontit/spontit.png b/packages/nodes-base/nodes/Spontit/spontit.png index ef3981b614f..8fec5b438b7 100644 Binary files a/packages/nodes-base/nodes/Spontit/spontit.png and b/packages/nodes-base/nodes/Spontit/spontit.png differ