Ghost/ghost/tiers
Fabien 'egg' O'Carroll 5a5ddcb609
🐛 Fixed Tiers API erroring when invalid filter passed (#19845)
closes ENG-730
closes https://linear.app/tryghost/issue/ENG-730/

We've updated the input serializer to parse the filter, and responded
with an error if it cannot be parsed correctly.

Now that it's parsed, we can pass a mongo query object through the
stack, which will lend itself to better typing for this code, which is a
direction we want to go in anyway. We've had to update all the internal
usages of the `browse` method to use mongo query objects.
2024-03-13 00:25:42 +07:00
..
lib 🐛 Fixed Tiers API erroring when invalid filter passed (#19845) 2024-03-13 00:25:42 +07:00
test Updated to use assert/strict everywhere (#17047) 2023-06-21 09:56:59 +01:00
.eslintrc.js Refactored Tiers logic into separate package 2022-10-19 11:05:09 +07:00
index.js Exported Tier events from tiers package 2022-10-20 17:40:37 +07:00
package.json Updated @tryghost/errors dependency 2024-03-11 17:33:51 +01:00
README.md Refactored Tiers logic into separate package 2022-10-19 11:05:09 +07:00

Tiers

'

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests