Ghost/ghost/member-events
2022-10-17 08:41:28 +00:00
..
lib Added member last seen update on link click (#15459) 2022-09-23 10:34:33 +02:00
test
.eslintrc.js
index.js Added member last seen update on link click (#15459) 2022-09-23 10:34:33 +02:00
package.json Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
README.md

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);