Ghost/ghost/member-events
2023-09-01 15:51:17 +02:00
..
lib Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
test
.eslintrc.js
index.js
package.json Updated linting and testing packages 2023-09-01 15:51:17 +02: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);