DONE: update to use ip for the api in frontend
Build Docker Image / build-backend (push) Successful in 6s
Build Docker Image / build-admin (push) Successful in 7s
Build Docker Image / build-teller (push) Successful in 5s
Build Docker Image / build-customer (push) Successful in 12s

This commit is contained in:
ISMAIL MASSERAN
2026-07-26 14:08:13 +08:00
parent 8fd3dbe393
commit d0f5d4c979
13 changed files with 97 additions and 22 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import QRCode from 'qrcode';
import { CUSTOMER_APP_URL } from '../constants.js';
import { BRANCH_QR_BASE_URL } from '../constants.js';
const DEFAULT_QR_SECRET = 'qms-branch-qr-v1';
@@ -54,7 +54,7 @@ export function decodeBranchQrToken(token, secret = getQrSecret()) {
}
export function getBranchTicketUrl(tenantCode, branchId) {
const base = CUSTOMER_APP_URL.replace(/\/$/, '');
const base = BRANCH_QR_BASE_URL.replace(/\/$/, '');
const token = encodeBranchQrToken(tenantCode, branchId);
return `${base}/q/${token}`;
}