Commit 1ebf64080f449b87de0f38636ebdedc82db7515d
1 parent
cb3c99c1
status
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/lib/models/discount.php
@@ -89,6 +89,8 @@ class discount extends \db | @@ -89,6 +89,8 @@ class discount extends \db | ||
89 | SELECT * | 89 | SELECT * |
90 | FROM public.discount | 90 | FROM public.discount |
91 | WHERE | 91 | WHERE |
92 | + status = 1 | ||
93 | + AND | ||
92 | current_timestamp > start_date | 94 | current_timestamp > start_date |
93 | AND | 95 | AND |
94 | current_timestamp < end_date | 96 | current_timestamp < end_date |