96e87d6798
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. |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
jsconfig.json | ||
LICENSE | ||
package.json | ||
README.md |
Offers
Install
npm install @tryghost/offers --save
or
yarn add @tryghost/offers
Usage
Develop
This is a mono repository, managed with lerna.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Run
yarn dev
Test
yarn lint
run just eslintyarn test
run lint and tests