1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-11-10 12:35:46 +03:00

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

@ -46,4 +46,4 @@ export async function spontitApiRequest(this: IExecuteFunctions | ILoadOptionsFu
}
throw error;
}
}
}

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