Simon Backx
2cf76cb031
Added newsletter relation to subscribe events ( #14585 )
...
refs https://github.com/TryGhost/Team/issues/1478
**Changes**
- Added the newsletter relation to subscribe events
**Changes in `members-api`**
- Compare: https://github.com/TryGhost/Members/compare/%40tryghost/members-api%406.0.0-alpha.0...%40tryghost/members-api%406.0.0
- Makes sure the newsletter relation is returned in the activity feed for susbcribe events (aka newsletter events).
**Tests**
- Added first test for activity feed to check if the newsletter relation is correctly fetched
2022-04-27 16:44:27 +02:00
Sam Lord
18b8eddd0d
Added linting for use of @tryghost/errors
...
refs: https://github.com/TryGhost/Toolbox/issues/147
Errors in @tryghost/errors rely on being called with an object (with a `message` member) rather than with a string.
2021-12-01 11:22:21 +00:00
Fabien 'egg' O'Carroll
27b9e4ae04
Added member relation to events ( #12656 )
...
refs https://github.com/TryGhost/Ghost/issues/12602
When listing site-wide event, we want to include member information so
that we can contextualise the event when displaying it.
2021-02-16 16:14:20 +00:00
Fabien O'Carroll
4dd1423026
Added missing semicolon
...
no-issue
2021-02-10 10:14:29 +00:00
Fabien O'Carroll
9a142cd906
Added aggregateSubscriptionDeltas to permitted options
...
no-issue
This was missing from https://github.com/TryGhost/Ghost/commit/1dc6fdc .
Without it the option will never be passed into the customQuery method.
2021-02-10 10:06:06 +00:00
Fabien O'Carroll
1dc6fdcd66
Added customQuery to handle subscribed aggregates
...
refs https://github.com/TryGhost/Ghost/issues/12602
In order to build up a list of un/subscribes over time we have to use
the customQuery functionality to run SQL aggregates - this is "hidden"
behind an option, so that we can find{All,Page} as usual.
2021-02-05 16:02:08 +00:00
Fabien O'Carroll
5aab41931f
Added skeleton MemberSubscribeEvent model
...
refs https://github.com/TryGhost/Ghost/issues/12602
Member Events in general are read-only after they've been created, so
we've explicitly disallowed destroying and editing via the model
2021-02-05 16:02:08 +00:00