mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
⚡ Minor improvements to Spontit-Node
This commit is contained in:
parent
2dbde92fd5
commit
991379066b
|
@ -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.<br>
|
||||
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[];
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in a new issue