Skip to content

Commit e153d75

Browse files
committed
ProjectUpdatedEvent.updates -> changes
The former was not used. This is better as it has non changes stripped, and can be used to check if dependent logic needs to run.
1 parent d332cd9 commit e153d75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/project/events/project-updated.event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class ProjectUpdatedEvent {
55
constructor(
66
public updated: UnsecuredDto<Project>,
77
readonly previous: UnsecuredDto<Project>,
8-
readonly updates: UpdateProject,
8+
readonly changes: UpdateProject,
99
readonly session: Session,
1010
) {}
1111
}

src/components/project/project.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export class ProjectService {
336336
const event = new ProjectUpdatedEvent(
337337
updated,
338338
currentProject,
339-
input,
339+
{ id: updated.id, ...changes },
340340
session,
341341
);
342342
await this.eventBus.publish(event);

0 commit comments

Comments
 (0)