Ghost/ghost/post-events/src/PostsBulkUnpublishedEvent.ts
Naz 18a4fa8cd9 Added bulk posts action events dispatching
refs https://github.com/TryGhost/Arch/issues/16

- Allows to subscribe to bulk unpublish/featured/unfeatured DomainEvents elsewhere in the system, for example, Collections.
2023-08-01 15:11:00 +08:00

14 lines
334 B
TypeScript

export class PostsBulkUnpublishedEvent {
data: string[];
timestamp: Date;
constructor(data: string[], timestamp: Date) {
this.data = data;
this.timestamp = timestamp;
}
static create(data: string[], timestamp = new Date()) {
return new PostsBulkUnpublishedEvent(data, timestamp);
}
}