mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-03 17:05:16 +03:00
Add OperationContext to be accessible by triggers (#5753)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
e2f48dc7ea
commit
5e9b9fbf70
@ -702,6 +702,7 @@ export class TServerStorage implements ServerStorage {
|
||||
const moves = await ctx.with('process-move', {}, (ctx) => this.processMove(ctx.ctx, txes, findAll))
|
||||
|
||||
const triggerControl: Omit<TriggerControl, 'txFactory' | 'ctx' | 'result'> = {
|
||||
operationContext: ctx,
|
||||
removedMap,
|
||||
workspace: this.workspaceId,
|
||||
storageAdapter: this.storageAdapter,
|
||||
|
@ -139,6 +139,7 @@ export interface Pipeline extends LowLevelStorage {
|
||||
* @public
|
||||
*/
|
||||
export interface TriggerControl {
|
||||
operationContext: SessionOperationContext
|
||||
ctx: MeasureContext
|
||||
workspace: WorkspaceIdWithUrl
|
||||
txFactory: TxFactory
|
||||
|
Loading…
Reference in New Issue
Block a user