Bladeren bron

fix vouchers vanishing on expiry date

Pi 3 weken geleden
bovenliggende
commit
aa39503119
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      util-sqlpage/code/recent.sql

+ 1 - 1
util-sqlpage/code/recent.sql

@@ -34,7 +34,7 @@ FROM code c
 LEFT JOIN code_detail cd
 ON c.hash = cd.hash
 WHERE (
-    cd.expiry IS NULL OR COALESCE($expired, 'false') = 'true' OR date(cd.expiry) > date(datetime(CURRENT_TIMESTAMP, 'localtime'))
+    cd.expiry IS NULL OR COALESCE($expired, 'false') = 'true' OR date(cd.expiry) >= date(datetime(CURRENT_TIMESTAMP, 'localtime'))
 ) AND (
     cd.used IS NULL OR COALESCE($used||'', 'false') = 'true' OR COALESCE(cd.used||'','') = 'false'
 ) AND (