Fix for download link

This commit is contained in:
Hillel Coren 2023-11-14 08:10:00 +02:00
parent 46293cf7a6
commit 6b7f1ac860
2 changed files with 2 additions and 3 deletions

View File

@ -631,8 +631,7 @@ Future handleCreditAction(BuildContext context, List<BaseEntity> credits,
case EntityAction.download:
store.dispatch(StartLoading());
await WebClient()
.get(credit.invitationEInvoiceDownloadLink, state.token,
rawResponse: true)
.get(credit.invitationDownloadLink, state.token, rawResponse: true)
.then((response) {
store.dispatch(StopLoading());
saveDownloadedFile(response.bodyBytes,

View File

@ -829,7 +829,7 @@ void handlePurchaseOrderAction(BuildContext? context,
break;
case EntityAction.download:
await WebClient()
.get(purchaseOrder.invitationEInvoiceDownloadLink, state.token,
.get(purchaseOrder.invitationDownloadLink, state.token,
rawResponse: true)
.then((response) {
store.dispatch(StopLoading());