Skip to content

Commit

Permalink
Add OperationContext to be accessible by triggers (hcengineering#5753)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
Signed-off-by: Keshav Ashiya <keshavashiya@outlook.com>
  • Loading branch information
haiodo authored and keshavashiya committed Jun 11, 2024
1 parent 3450a0e commit 90e171f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/core/src/server/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions server/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export interface Pipeline extends LowLevelStorage {
* @public
*/
export interface TriggerControl {
operationContext: SessionOperationContext
ctx: MeasureContext
workspace: WorkspaceIdWithUrl
txFactory: TxFactory
Expand Down

0 comments on commit 90e171f

Please sign in to comment.