Ghost/ghost/milestones
Aileen Nowak d820b961b0 Avoid sending milestone email when actual value is too far from milestone
no issue

- Switches to used newly added config values throughout the services
- Updated the `shouldSendEmail` fn to check if actual value is too far from achieved milestone as determined by the percentage setting (e. g. 998 members should not accidentally receive an email for achieving 100 members)
2023-02-23 17:21:20 +02:00
..
lib Avoid sending milestone email when actual value is too far from milestone 2023-02-23 17:21:20 +02:00
test Avoid sending milestone email when actual value is too far from milestone 2023-02-23 17:21:20 +02:00
.eslintrc.js Renamed milestone-emails to milestones 2023-02-15 10:43:05 +02:00
index.js Renamed milestone-emails to milestones 2023-02-15 10:43:05 +02:00
package.json Updated @tryghost/errors dependency 2023-02-22 11:32:11 +01:00
README.md Renamed milestone-emails to milestones 2023-02-15 10:43:05 +02:00

Milestones

Checking milestone defined milestone goals and sending events when achieved

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