Ghost/ghost/member-events
2022-12-12 13:20:22 +00:00
..
lib
test
.eslintrc.js
index.js
package.json Update dependency mocha to v10.2.0 2022-12-12 13:20:22 +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);