161c0d7330
refs https://github.com/TryGhost/Team/issues/1306 - Contains all services that listen on member events - Only contains the last-seen-at-updater service for now - Listens for `MemberViewEvent` events to update the `member.last_seen_at` timestamp - Updates after 24hours of the last timestamp to avoid too many writes - Also updates when the value is NULL - This is using the existing `last_seen_at` value to avoid an SQL query when no writes are required
33 lines
795 B
JSON
33 lines
795 B
JSON
{
|
|
"name": "@tryghost/members-events-service",
|
|
"version": "0.0.0",
|
|
"repository": "https://github.com/TryGhost/Members/tree/main/packages/members-events-service",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test": "NODE_ENV=testing c8 --all --check-coverage mocha './test/**/*.test.js'",
|
|
"lint": "eslint . --ext .js --cache",
|
|
"posttest": "yarn lint"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"c8": "7.11.0",
|
|
"mocha": "9.2.1",
|
|
"should": "13.2.3",
|
|
"sinon": "13.0.1"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/domain-events": "^0.1.7",
|
|
"@tryghost/member-events": "^0.3.5",
|
|
"moment": "^2.29.1"
|
|
}
|
|
}
|