fix(Wise Node): Respect time parameter on get: exchangeRate (#3227)

This commit is contained in:
Tom 2022-05-02 10:03:29 +02:00 committed by GitHub
parent 79ced8f677
commit c7d525a60f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -281,7 +281,7 @@ export class Wise implements INodeType {
if (range !== undefined && time === undefined) { if (range !== undefined && time === undefined) {
qs.from = moment.tz(range.rangeProperties.from, timezone).utc().format(); qs.from = moment.tz(range.rangeProperties.from, timezone).utc().format();
qs.to = moment.tz(range.rangeProperties.to, 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.from = moment().subtract(1, 'months').utc().format();
qs.to = moment().format(); qs.to = moment().format();
} }