Skip to content
Snippets Groups Projects
Verified Commit 0aea2218 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Pandas's trap

parent af42e212
No related branches found
No related tags found
No related merge requests found
Pipeline #19936 passed
......@@ -2,7 +2,7 @@ image: docker:latest
variables:
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_VER: 0.20.2
IMAGE_VER: 0.21.0
services:
- docker:dind
......
......@@ -94,6 +94,8 @@ sub create ($c ) {
PRODUCT:
foreach my $product ( @{ $args->{products} } ) {
return $c->error(400, "Běž žebrat jinam, Pando") if $product->{price} < $c->config->{min_fee};
$product->{id} = $c->mapped_product_id($product->{id});
next PRODUCT if $pt->{subsidy}{$product->{id}} && ! $product->{price};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment