Přesun autentizace na server
This commit is contained in:
@@ -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