import { AutowiredEvent } from '@task-stream/api/shared/domain'; import { TrackerEvent } from './tracker.event'; /** Someone voted for a ticket, or took the vote back. */ @AutowiredEvent export class IssueVotedEvent extends TrackerEvent { constructor( actorId: string, issueId: string, projectId: string, /** Everyone who wants it, after the change. */ readonly voterIds: string[], ) { super(actorId, issueId, projectId); } }