mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 13:22:39 +03:00
308a28d31a
refs https://github.com/TryGhost/Toolbox/issues/354 - these READMEs were migrated over from when each package was in a different repo - they also assume you're going to be publishing the packages because it mentions install instructions - only a few of them contain custom content - this commit deletes the majority of these files because they're now not useful - any that contained other instructions have been cut down
19 lines
343 B
Markdown
19 lines
343 B
Markdown
# 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);
|
|
```
|