Skip to content

Commit 658989d

Browse files
committed
fix(segments/process): update processSegment to use tx instead of db
The ts-expect-error was masking the bug.
1 parent cc0e701 commit 658989d

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/services/tracing/segments

1 file changed

+1
-1
lines changed

packages/core/src/services/tracing/segments/process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function processSegment(
8787
} as SegmentMetadata
8888

8989
// @ts-expect-error seems typescript cannot infer that state types are the same
90-
const processing = await specification.process(state, db)
90+
const processing = await specification.process(state, tx)
9191
if (processing.error) return Result.error(processing.error)
9292
metadata = { ...metadata, ...processing.value }
9393

0 commit comments

Comments
 (0)