From c7d525a60fda4aad653017cb90253426cce98b3b Mon Sep 17 00:00:00 2001 From: Tom <19203795+that-one-tom@users.noreply.github.com> Date: Mon, 2 May 2022 10:03:29 +0200 Subject: [PATCH] fix(Wise Node): Respect time parameter on get: exchangeRate (#3227) --- packages/nodes-base/nodes/Wise/Wise.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Wise/Wise.node.ts b/packages/nodes-base/nodes/Wise/Wise.node.ts index c995c52676..ed94df3621 100644 --- a/packages/nodes-base/nodes/Wise/Wise.node.ts +++ b/packages/nodes-base/nodes/Wise/Wise.node.ts @@ -281,7 +281,7 @@ export class Wise implements INodeType { if (range !== undefined && time === undefined) { qs.from = moment.tz(range.rangeProperties.from, timezone).utc().format(); qs.to = moment.tz(range.rangeProperties.to, timezone).utc().format(); - } else { + } else if (time === undefined) { qs.from = moment().subtract(1, 'months').utc().format(); qs.to = moment().format(); }