Compare commits

...

3 commits

Author SHA1 Message Date
e6d3646fa8
Merge branch 'notifier' 2023-01-25 11:21:15 -06:00
3afe350816
Version bump 2023-01-25 11:20:19 -06:00
bde97f9211
Correct expiring owners query for paid 2023-01-24 18:34:22 -06:00
4 changed files with 12 additions and 3 deletions

View file

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.2.2] - 2023-01-25
### Fixed
- Corrected selection criteria for expiring owners query
## [1.2.1] - 2023-01-24
### Added

View file

@ -1,5 +1,5 @@
name: zgo-backend
version: 1.2.1
version: 1.2.2
git: "https://git.vergara.tech/Vergara_Tech/zgo-backend"
license: BOSL
author: "Rene Vergara"

View file

@ -297,4 +297,7 @@ findOwnerById i =
findExpiringOwners :: UTCTime -> Action IO [Document]
findExpiringOwners now =
rest =<<
find (select ["expiration" =: ["$lte" =: addUTCTime 172800 now]] "owners")
find
(select
["paid" =: True, "expiration" =: ["$lte" =: addUTCTime 172800 now]]
"owners")

View file

@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack
name: zgo-backend
version: 1.2.1
version: 1.2.2
synopsis: Haskell Back-end for the ZGo point-of-sale application
description: Please see the README at <https://git.vergara.tech/Vergara_Tech//zgo-backend#readme>
category: Web