Ghost/ghost/offers/lib
Fabien O'Carroll 96e87d6798 Ensured that Offers can be filtered on status
refs https://github.com/TryGhost/Team/issues/1131

This adds a mapping between the status property used in the domain & API
and the active column used in the database. As we only have the usecase
of filtering by `status` right now, we have not added support for all
the other columns. Instead of these potentially erroring where the
column name does not match the property name in the domain/api - we've
added a transformer which will ignore all filters for properties other
than `status`. This follows postels law, in that we can be liberal with
the filters we accept, but conservative in the ones we implement.
2021-10-12 18:36:04 +02:00
..
application Ensured that Offers can be filtered on status 2021-10-12 18:36:04 +02:00
domain Defaulted to 'active' status when creating Offers 2021-10-12 17:10:51 +02:00