Přesun autentizace na server
This commit is contained in:
1 parent
47fbe4173d
commit
e81c7d09a3
15 files changed
+297
-134
No files matched your search
@@ -218,6 +218,7 @@ export function finishPizzaDelivery(login: string, bankAccount?: string, bankAcc
|
||||
clientData.pizzaDay.state = PizzaDayState.DELIVERED;
|
||||
|
||||
// Vygenerujeme QR kód, pokud k tomu máme data
|
||||
// TODO berka je potřeba počkat na resolve promises z generateQr a až poté volat save do DB
|
||||
if (bankAccount?.length && bankAccountHolder?.length) {
|
||||
for (const order of clientData.pizzaDay.orders) {
|
||||
if (order.customer !== login) { // zatím platí creator = objednávající, a pro toho nemá QR kód smysl
|
||||
|
||||
Reference in new issue
Block a user