Skip to content

Commit 2d5ac62

Browse files
committed
fix tests
1 parent 647d6cc commit 2d5ac62

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/agent/src/diagnostic-agent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,11 @@ export class DiagnosticAgent extends EventEmitter {
682682
? { ...traced, suggestions: this.queryAnalyzer.analyze(traced.sanitizedQuery) }
683683
: traced;
684684

685-
if (this.slowQueryMonitor) {
685+
if (this.slowQueryMonitor && traced.driver) {
686686
const slow = this.slowQueryMonitor.check(
687687
traced.sanitizedQuery,
688688
traced.durationMs,
689-
traced.driver ?? "unknown",
689+
traced.driver,
690690
traced.timestamp,
691691
traced.sourceLine,
692692
traced.correlationId,

0 commit comments

Comments
 (0)