first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { AutowiredEvent } from '@task-stream/api/shared/domain';
|
||||
import { ProjectRole } from '../project/project-role';
|
||||
import { TrackerEvent } from './tracker.event';
|
||||
|
||||
/** A member got a new role. */
|
||||
@AutowiredEvent
|
||||
export class ProjectMemberRoleChangedEvent extends TrackerEvent {
|
||||
constructor(
|
||||
actorId: string,
|
||||
projectId: string,
|
||||
readonly userId: string,
|
||||
readonly role: ProjectRole,
|
||||
readonly previousRole: ProjectRole,
|
||||
) {
|
||||
super(actorId, projectId, projectId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user