From 991379066b424ea88bfb8c918dbe6ff2533bfbd0 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 24 Nov 2020 23:20:09 +0100 Subject: [PATCH] :zap: Minor improvements to Spontit-Node --- .../nodes/Spontit/GenericFunctions.ts | 2 +- .../nodes/Spontit/PushDescription.ts | 16 ++++++++-------- .../nodes-base/nodes/Spontit/Spontit.node.ts | 1 - packages/nodes-base/nodes/Spontit/spontit.png | Bin 5645 -> 1688 bytes 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/nodes-base/nodes/Spontit/GenericFunctions.ts b/packages/nodes-base/nodes/Spontit/GenericFunctions.ts index 993ede1b96..cce7ccfc29 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 bbb6075e6b..431b567300 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 72fd75d596..0f8dd60794 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 ef3981b614f40257d76ee7f8c08c90fda1fd585b..8fec5b438b7327c525de83cc5c256498e1aaa51e 100644 GIT binary patch delta 1683 zcmV;E25k9_ESL?D8Gi!+000dlDL?=K0qIaoR7Ey9J^51>5_m z^}D0)wl+UT0OJ2PK}ZDL{s86wIX^%q11zccy^hVFmDr~?JV7-+L6 z|5b5eFC;e|0wVz3{ipM~0NndJLP9n>KsP2O4AATn$>kck(|;?2lP-FRE^&V=8ZkF2 zDgxN|6UX8xlBImHj5i(}2G#Qyzu6zK$ENbRqU^OKp0j?mjx$M6IX^)#DmXVHAOPR~ z3(@Wk&FK%z<{h%iCYr7_G&na2029RD6~f#gslT4(uqKzPDUF~ig_bOTkS=zGE^d1- zXLB-BT{BEnMt@mRFf>3lG(0seFE<$!Hx&#B)9@I+*B!LXA*Q@4ikyYMl`v~~Flu%& zT4YXTST;UEA{je7JUTfyH8n3WI5IFg5d%9H06Yx&RfAu+s5OVn4=Uw+k^IY;%iCJ#BQR~$aAB7e9eO1d))RM}!<2}S>0~@!YC@byVJ_ZC6wrEd+=M8R^CoXZq9kK&sqcEq znJC884Rl`Ck1&PI=g*SfR99J*BkU&W)36*yexUQPPDZ4Vy_wY7Fo!@K6HAdZaR`QS z?te@Ro-=p(=6-BdQYN(nO*ZBavco zH>pCf=!78OZ<^F0BR<(tpG`a1aBpbno-1gU5_WdR;F*)q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