From 5f0b57f7e9e857636a72393b3a4b1721069d17f9 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Thu, 30 Jun 2022 09:57:05 -0500 Subject: [PATCH] Fix wrong test when processing payments --- scripts/process-pending-payments | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/process-pending-payments b/scripts/process-pending-payments index a9963e17..7c74cc60 100755 --- a/scripts/process-pending-payments +++ b/scripts/process-pending-payments @@ -165,7 +165,7 @@ try{ if(($payment->IsRecurring && $payment->Amount >= 10 && $payment->Created >= $lastMonth) || ($payment->Amount >= 100 && $payment->Created >= $lastYear)){ // This payment is eligible for the Patrons Circle. // Are we already a patron? - if(!Db::QueryInt('SELECT count(*) from Patrons where UserId = ? and Ended is not null', [$payment->UserId])){ + if(!Db::QueryInt('SELECT count(*) from Patrons where UserId = ? and Ended is null', [$payment->UserId])){ // Not a patron yet, add them to the Patrons Circle $patron = new Patron();