Ghost/ghost/member-events/README.md

19 lines
343 B
Markdown
Raw Permalink Normal View History

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