Ghost/ghost/members-events-service
Thibaut Patel 88f8b622f1 Moved the DomainEvents service as a dependency of members-events-service
refs https://github.com/TryGhost/Ghost/pull/14197

- Using the package directly was creating a second instance and was never triggering the subscriber
- Passing DomainEvents as a dependency solves this issue
2022-03-01 17:12:59 +01:00
..
lib Moved the DomainEvents service as a dependency of members-events-service 2022-03-01 17:12:59 +01:00
test Moved the DomainEvents service as a dependency of members-events-service 2022-03-01 17:12:59 +01:00
.eslintrc.js Added the members-events-service package 2022-02-28 14:42:17 +01:00
index.js Added the members-events-service package 2022-02-28 14:42:17 +01:00
LICENSE Added the members-events-service package 2022-02-28 14:42:17 +01:00
package.json Published new versions 2022-03-01 15:28:19 +01:00
README.md Added the members-events-service package 2022-02-28 14:42:17 +01:00

Members events service

Contains member services that listen on specific events to perform actions:

  • Last-seen-at updater: Updates members.last_seen_at on a page/post view event

Install

npm install @tryghost/members-events-service --save

or

yarn add @tryghost/members-events-service

Usage

Develop

This is a mono repository, managed with lerna.

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.

Run

  • yarn dev

Test

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

Copyright & License

Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.