first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { AutowiredEvent } from '@task-stream/api/shared/domain';
|
||||
import type { ProjectProps } from '../project/project';
|
||||
import { TrackerEvent } from './tracker.event';
|
||||
|
||||
/** A project was created. */
|
||||
@AutowiredEvent
|
||||
export class ProjectCreatedEvent extends TrackerEvent {
|
||||
constructor(
|
||||
actorId: string,
|
||||
readonly project: ProjectProps,
|
||||
) {
|
||||
super(actorId, project.id, project.id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user