Commit 69bb2148de3f97ccb287ebfa0a9883782eadf5f7

Authored by Alex Savenko
1 parent 5ed26640

prices

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
src/lib/models/discount.php
@@ -66,11 +66,10 @@ class discount extends \db @@ -66,11 +66,10 @@ class discount extends \db
66 SELECT * 66 SELECT *
67 FROM public.discount 67 FROM public.discount
68 WHERE 68 WHERE
69 - id = :id  
70 - AND  
71 current_timestamp > start_date 69 current_timestamp > start_date
72 AND 70 AND
73 current_timestamp < end_date 71 current_timestamp < end_date
  72 + LIMIT 1
74 73
75 ', 74 ',
76 [ 75 [