mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
d2d7fb3fe7
refs https://github.com/TryGhost/Ghost/pull/14197 - Moved from updating the last_seen_at value "at most every 24h" to "at most every UTC day". - It will simplify explaining the following behavior: a publication is set in UTC-10, a user visits at 2pm on Monday and at 1pm on Tuesday, the last_seen_at value is still Monday. - There is no way to go around the above issue due to the technical constraint of updating the `last_seen_at` value at most once a day. - This might create database write spikes at midnight UTC |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
LICENSE | ||
package.json | ||
README.md |
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.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Run
yarn dev
Test
yarn lint
run just eslintyarn test
run lint and tests
Copyright & License
Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.