Correct expiring owners query for paid
This commit is contained in:
parent
814d4c9ee5
commit
bde97f9211
1 changed files with 4 additions and 1 deletions
|
@ -297,4 +297,7 @@ findOwnerById i =
|
||||||
findExpiringOwners :: UTCTime -> Action IO [Document]
|
findExpiringOwners :: UTCTime -> Action IO [Document]
|
||||||
findExpiringOwners now =
|
findExpiringOwners now =
|
||||||
rest =<<
|
rest =<<
|
||||||
find (select ["expiration" =: ["$lte" =: addUTCTime 172800 now]] "owners")
|
find
|
||||||
|
(select
|
||||||
|
["paid" =: True, "expiration" =: ["$lte" =: addUTCTime 172800 now]]
|
||||||
|
"owners")
|
||||||
|
|
Loading…
Reference in a new issue