Sfoglia il codice sorgente

fix vouchers vanishing on expiry date

Pi 3 settimane fa
parent
commit
aa39503119
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 (