Ghost/ghost/stats-service
Simon Backx 400e1b4ab6 🐛 Fixed 3D secure payment not counted as paid subscription in graph
fixes https://github.com/TryGhost/Team/issues/2644

A 3D secure payment first has a status of incomplete, then active.

With the current logic, this creates 2 MemberPaidSubscriptionEvents:

- `created` with mrr_delta of 0
- `active` with mrr_delta of 5

We need to also count 'active' events. And to complement that, also 'inactive' events to make sure we balance out in rare cases.
2023-03-10 16:16:17 +01:00
..
lib 🐛 Fixed 3D secure payment not counted as paid subscription in graph 2023-03-10 16:16:17 +01:00
test Fixed no-shadow lint warnings (#15520) 2022-10-03 15:50:28 +01:00
.eslintrc.js Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00
index.js Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00
package.json Updated sinon dependency 2023-03-02 12:43:42 +01:00
README.md Cleanup Stats-Service package files 2022-09-20 14:28:11 +01:00

Stats

Stats service

Usage

Test

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