Ghost/ghost/member-events
2022-11-07 20:39:48 +00:00
..
lib Added linking between member and subscription created events (#15693) 2022-10-27 11:44:19 +02:00
test
.eslintrc.js
index.js
package.json Update Test & linting packages 2022-11-07 20:39:48 +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);