fix: correct earn points API path on loyalty terminal
Some checks failed
CI / validate (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / pytest (push) Has been cancelled
CI / ruff (push) Successful in 10s

JS called /store/loyalty/points/earn but endpoint is POST /store/loyalty/points.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 23:00:18 +01:00
parent d0d5aadaf7
commit 01146d5c97

View File

@@ -220,7 +220,7 @@ function storeLoyaltyTerminal() {
async earnPoints() { async earnPoints() {
loyaltyTerminalLog.info('Earning points...', { amount: this.earnAmount }); loyaltyTerminalLog.info('Earning points...', { amount: this.earnAmount });
const response = await apiClient.post('/store/loyalty/points/earn', { const response = await apiClient.post('/store/loyalty/points', {
card_id: this.selectedCard.id, card_id: this.selectedCard.id,
purchase_amount_cents: Math.round(this.earnAmount * 100), purchase_amount_cents: Math.round(this.earnAmount * 100),
staff_pin: this.pinDigits staff_pin: this.pinDigits