Skip to content

Commit a42a8d5

Browse files
Copilothotlong
andcommitted
fix: remove extra context params from analytics query/generateSql calls to match contract
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent e454a36 commit a42a8d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/runtime/src/http-dispatcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ export class HttpDispatcher {
535535

536536
// POST /analytics/query
537537
if (subPath === 'query' && m === 'POST') {
538-
const result = await analyticsService.query(body, { request: context.request });
538+
const result = await analyticsService.query(body);
539539
return { handled: true, response: this.success(result) };
540540
}
541541

@@ -548,7 +548,7 @@ export class HttpDispatcher {
548548
// POST /analytics/sql (Dry-run or debug)
549549
if (subPath === 'sql' && m === 'POST') {
550550
// Assuming service has generateSql method
551-
const result = await analyticsService.generateSql(body, { request: context.request });
551+
const result = await analyticsService.generateSql(body);
552552
return { handled: true, response: this.success(result) };
553553
}
554554

0 commit comments

Comments
 (0)