Minor improvements to Spontit-Node

This commit is contained in:
Jan Oberhauser 2020-11-24 23:20:09 +01:00
parent 2dbde92fd5
commit 991379066b
4 changed files with 9 additions and 10 deletions

View file

@ -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[];

View file

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