mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(core): Make all pubsub messages type-safe (#10990)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user