mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +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
343 B
343 B
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);