Skip to content

Commit

Permalink
NTR: fix pipeline (#905)
Browse files Browse the repository at this point in the history
Co-authored-by: Vitalij Mik <[email protected]>
  • Loading branch information
BlackScorp and Vitalij Mik authored Dec 5, 2024
1 parent e394ccf commit 91f8291
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 91f8291

Please sign in to comment.