Add OperationContext to be accessible by triggers (#5753)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2024-06-07 18:09:25 +07:00 committed by GitHub
parent e2f48dc7ea
commit 5e9b9fbf70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -139,6 +139,7 @@ export interface Pipeline extends LowLevelStorage {
* @public
*/
export interface TriggerControl {
operationContext: SessionOperationContext
ctx: MeasureContext
workspace: WorkspaceIdWithUrl
txFactory: TxFactory