diff --git a/lib/utils/invoiceExport/getInvoiceExportData.js b/lib/utils/invoiceExport/getInvoiceExportData.js index 1cb4e724..bbeeff3f 100644 --- a/lib/utils/invoiceExport/getInvoiceExportData.js +++ b/lib/utils/invoiceExport/getInvoiceExportData.js @@ -81,9 +81,10 @@ export const getInvoiceExportData = async ({ ky, intl, query, currency: to }) => }); const addresses = getAddresses(addressRecords); const currencies = uniq(exportInvoices.map(({ currency }) => currency)); - const exchangeRates = await Promise.all( + const allExchangeRates = await Promise.allSettled( currencies.map(from => ky.get(EXCHANGE_RATE_API, { searchParams: { from, to } }).json()), ); + const exchangeRates = allExchangeRates.filter(({ status }) => status === 'fulfilled'); return (createInvoiceExportReport({ acqUnitMap: keyBy(acqUnits, 'id'),