Skip to content

Commit

Permalink
NTR: fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Dec 5, 2024
1 parent e394ccf commit 525f07b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export default class MolliePaymentsConfigService extends ApiService {
MolliePaymentsRefundBundleRepositoryService.setClient(this.httpClient);
MolliePaymentsRefundBundleRepositoryService.setHeaders(this.getBasicHeaders());

return MolliePaymentsRefundBundleRepositoryService.fetch()
return MolliePaymentsRefundBundleRepositoryService.fetch().then((response) => {
return ApiService.handleResponse(response);
});
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class RefundManager {

await this._configService.getRefundManagerConfig(salesChannelId, orderId)
.then((response) => {
refundManagerPossible = response.data.config.enabled;
refundManagerPossible = response.config.enabled;
});

return refundManagerPossible;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ Component.register('mollie-refund-manager', {
// also get the config for the refund manager
// so that we can show/hide a few things
this.MolliePaymentsConfigService.getRefundManagerConfig(this.order.salesChannelId, this.order.id).then((response) => {
me.configVerifyRefund = response.verifyRefund;
me.configAutoStockReset = response.autoStockReset;
me.configShowInstructions = response.showInstructions;
me.configVerifyRefund = response.config.verifyRefund;
me.configAutoStockReset = response.config.autoStockReset;
me.configShowInstructions = response.config.showInstructions;
});
}
},
Expand Down

0 comments on commit 525f07b

Please sign in to comment.