Ghost/ghost/members-events-service
Thibaut Patel 36bb014fc0 Simplified time comparison in last-seen-at-updater
no issue

- The code had un-needed complexity
- Removing the extra complexity led to the same behavior, as validated by the unit tests
2022-03-01 13:07:37 +01:00
..
lib Simplified time comparison in last-seen-at-updater 2022-03-01 13:07:37 +01:00
test Moved the last-seen-at-updater to use the publication timezone 2022-03-01 10:28:45 +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 10:36:48 +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.