refactor(core): Make all pubsub messages type-safe (#10990)

This commit is contained in:
Iván Ovejero
2024-09-27 12:35:01 +02:00
committed by GitHub
parent 08a27b3148
commit bf7392a878
17 changed files with 285 additions and 306 deletions

View File

@@ -210,7 +210,7 @@ export class MessageEventBus extends EventEmitter {
this.destinations[destination.getId()] = destination;
this.destinations[destination.getId()].startListening();
if (notifyWorkers) {
await this.orchestrationService.publish('restartEventBus');
await this.orchestrationService.publish('restart-event-bus');
}
return destination;
}
@@ -236,7 +236,7 @@ export class MessageEventBus extends EventEmitter {
delete this.destinations[id];
}
if (notifyWorkers) {
await this.orchestrationService.publish('restartEventBus');
await this.orchestrationService.publish('restart-event-bus');
}
return result;
}