mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 13:35:04 +02:00
remove mutex (#7056)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
import core, {
|
||||
TxFactory,
|
||||
TxProcessor,
|
||||
generateId,
|
||||
groupByArray,
|
||||
matchQuery,
|
||||
type Class,
|
||||
@@ -149,8 +150,14 @@ export class Triggers {
|
||||
trigger.resource,
|
||||
{},
|
||||
async (ctx) => {
|
||||
if (mode === 'async') {
|
||||
ctx.id = generateId()
|
||||
}
|
||||
const tresult = await this.applyTrigger(ctx, ctrl, matches, { trigger, arrays })
|
||||
result.push(...tresult)
|
||||
if (ctx.onEnd !== undefined && mode === 'async') {
|
||||
await ctx.onEnd(ctx)
|
||||
}
|
||||
},
|
||||
{ count: matches.length, arrays }
|
||||
)
|
||||
|
||||
@@ -160,8 +160,6 @@ export interface PipelineContext {
|
||||
head?: Middleware
|
||||
|
||||
broadcastEvent?: (ctx: MeasureContext, tx: Tx[]) => Promise<void>
|
||||
|
||||
endContext?: (ctx: MeasureContext) => Promise<void>
|
||||
}
|
||||
/**
|
||||
* @public
|
||||
|
||||
Reference in New Issue
Block a user