mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
Keep invoiceninja API v4 compatibility for invoice number query param
This commit is contained in:
parent
3c3e77bcc4
commit
089d4658d7
|
@ -553,7 +553,12 @@ export class InvoiceNinja implements INodeType {
|
|||
qs.include = options.include as string;
|
||||
}
|
||||
if (options.invoiceNumber) {
|
||||
qs.number = options.invoiceNumber as string;
|
||||
if (apiVersion === 'v4') {
|
||||
qs.invoice_number = options.invoiceNumber as string;
|
||||
} else if (apiVersion === 'v5') {
|
||||
// eslint-disable-next-line id-denylist
|
||||
qs.number = options.invoiceNumber as string;
|
||||
}
|
||||
}
|
||||
if (options.status) {
|
||||
qs.status = options.status as string;
|
||||
|
|
Loading…
Reference in a new issue