Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf-web-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KS Pardubický kraj
cf-web-api
Commits
b39f2e15
Verified
Commit
b39f2e15
authored
2 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Ukladani odpovedi pretixu
parent
70dc5ce8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#11605
passed
2 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
lib/CF2022/Controller/Orders.pm
+1
-0
1 addition, 0 deletions
lib/CF2022/Controller/Orders.pm
lib/CF2022/Schema/Result/Order.pm
+11
-0
11 additions, 0 deletions
lib/CF2022/Schema/Result/Order.pm
sql/2/up.sql
+4
-0
4 additions, 0 deletions
sql/2/up.sql
with
17 additions
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
b39f2e15
...
@@ -2,7 +2,7 @@ image: docker:20.10.9
...
@@ -2,7 +2,7 @@ image: docker:20.10.9
variables
:
variables
:
DOCKER_TLS_CERTDIR
:
"
/certs"
DOCKER_TLS_CERTDIR
:
"
/certs"
IMAGE_VER
:
0.1
1.4
IMAGE_VER
:
0.1
2.0
services
:
services
:
-
docker:20.10.9-dind
-
docker:20.10.9-dind
...
...
This diff is collapsed.
Click to expand it.
lib/CF2022/Controller/Orders.pm
+
1
−
0
View file @
b39f2e15
...
@@ -163,6 +163,7 @@ sub create ($c ) {
...
@@ -163,6 +163,7 @@ sub create ($c ) {
email
=>
$order
->
{
email
},
email
=>
$order
->
{
email
},
api
=>
$url
,
api
=>
$url
,
request
=>
$order
,
request
=>
$order
,
response
=>
$rc
->
json
,
order_id
=>
$rc
->
json
->
{
code
},
order_id
=>
$rc
->
json
->
{
code
},
});
});
...
...
This diff is collapsed.
Click to expand it.
lib/CF2022/Schema/Result/Order.pm
+
11
−
0
View file @
b39f2e15
...
@@ -15,12 +15,14 @@ __PACKAGE__->add_columns(
...
@@ -15,12 +15,14 @@ __PACKAGE__->add_columns(
id
id
created
created
deleted
deleted
paid
ip
ip
sso_uuid
sso_uuid
order_id
order_id
email
email
api
api
request
request
response
)
,
)
,
);
);
...
@@ -35,4 +37,13 @@ __PACKAGE__->inflate_column('request', {
...
@@ -35,4 +37,13 @@ __PACKAGE__->inflate_column('request', {
},
},
});
});
__PACKAGE__
->
inflate_column
('
response
',
{
inflate
=>
sub
{
return
from_json
(
shift
);
},
deflate
=>
sub
{
return
to_json
(
shift
);
},
});
1
;
1
;
This diff is collapsed.
Click to expand it.
sql/2/up.sql
0 → 100644
+
4
−
0
View file @
b39f2e15
create
sequence
"uid_seq"
start
100000
;
alter
table
order
"orders"
add
column
"response"
text
;
alter
table
order
"orders"
add
column
"paid"
timestamp
(
0
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment