From 543c6f77f8e54db60990ffe534e8c35c4acd1fd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Tue, 7 Mar 2023 21:21:47 +0100
Subject: [PATCH] URL QR v odpovedi po registraci

---
 .gitlab-ci.yml                  | 2 +-
 lib/CF2022/Controller/Orders.pm | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 56064bc..96176e1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,7 @@ image: docker:20.10.9
 
 variables:
   DOCKER_TLS_CERTDIR: "/certs"
-  IMAGE_VER: 0.13.0
+  IMAGE_VER: 0.13.1
 
 services:
   - docker:20.10.9-dind
diff --git a/lib/CF2022/Controller/Orders.pm b/lib/CF2022/Controller/Orders.pm
index 56f9a11..92b8157 100644
--- a/lib/CF2022/Controller/Orders.pm
+++ b/lib/CF2022/Controller/Orders.pm
@@ -177,6 +177,7 @@ sub create ($c ) {
         vs      => sprintf(TPL_VS, $c->cfg->{payment_vs_prefix}, $order->id ),
         ss      => $c->cfg->{payment_ss},
         ks      => $c->cfg->{payment_ks},
+        qr      => '/api/orders/' . $order->id . '/payment.png',
     };
 
     $c->render(
-- 
GitLab