Skip to content

Commit 1eb487c

Browse files
committed
Fix change check on region/zone director role removal
1 parent b3e362e commit 1eb487c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/field-region/handlers/restrict-region-director-removal.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class RestrictRegionDirectorRemovalHandler {
88
constructor(private readonly repo: FieldRegionRepository) {}
99

1010
async handle(event: UserUpdatedEvent) {
11-
if (!event.updated.roles) {
11+
if (!event.input.roles) {
1212
return;
1313
}
1414
const roleRemoved =

src/components/field-zone/handlers/restrict-zone-director-removal.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class RestrictZoneDirectorRemovalHandler {
88
constructor(private readonly repo: FieldZoneRepository) {}
99

1010
async handle(event: UserUpdatedEvent) {
11-
if (!event.updated.roles) {
11+
if (!event.input.roles) {
1212
return;
1313
}
1414
const roleRemoved =

0 commit comments

Comments
 (0)