mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
Try to fix missing communication broadcast events (#9384)
This commit is contained in:
@@ -48,6 +48,7 @@ export class QueueMiddleware extends BaseMiddleware {
|
||||
await this.connected
|
||||
this.connected = undefined
|
||||
}
|
||||
|
||||
await Promise.all([
|
||||
this.provideBroadcast(ctx),
|
||||
this.txProducer.send(
|
||||
|
||||
@@ -253,6 +253,10 @@ export class TriggersMiddleware extends BaseMiddleware implements Middleware {
|
||||
// We need to send all to recipients
|
||||
await this.context.head?.handleBroadcast(ctx)
|
||||
})
|
||||
} else if (ctx.contextData.hasDomainBroadcast === true) {
|
||||
await ctx.with('broadcast-async-domain-request', {}, async (ctx) => {
|
||||
await this.context.head?.handleBroadcast(ctx)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user