Tweak anonymous patron count SQL

This commit is contained in:
Alex Cabal 2022-09-01 10:19:37 -05:00
parent 64a8ccb082
commit 0907dacae1

View file

@ -25,7 +25,7 @@ $anonymousPatronCount = Db::QueryInt('SELECT sum(cnt)
UserId is null
and
(
(Amount >= 100 and Created >= utc_timestamp() - interval 1 year)
(Amount >= 100 and IsRecurring = false and Created >= utc_timestamp() - interval 1 year)
or
(Amount >= 10 and IsRecurring = true and Created >= utc_timestamp() - interval 30 day)
)