Ghost/ghost/member-events
2022-10-05 00:36:08 +00:00
..
lib Added member last seen update on link click (#15459) 2022-09-23 10:34:33 +02:00
test Added @tryghost/member-events 2021-09-17 15:22:08 +02:00
.eslintrc.js Added @tryghost/member-events 2021-09-17 15:22:08 +02:00
index.js Added member last seen update on link click (#15459) 2022-09-23 10:34:33 +02:00
package.json Update Test & linting packages 2022-10-05 00:36:08 +00:00
README.md Tidied up package READMEs 2022-07-25 15:17:12 +02:00

Member Events

Usage

const {MemberEntryViewEvent} = require('@tryghost/member-events');

const event = MemberEntryViewEvent.create({
    memberId: member.id,
    memberStatus: member.status,
    entryId: post.id,
    entryUrl: post.url
});

const DomainEvents = require('@tryghost/domain-events');

DomainEvents.dispatch(event);