From 61ed399244c2fe1c61e249cc6cd35506d748645b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Catriel=20M=C3=BCller?= Date: Thu, 2 Apr 2026 14:28:23 -0300 Subject: [PATCH] refactor(gateway): rename orgId to organizationId for consistency Align variable naming with existing patterns in the same file (lines 326, 396). --- packages/kilo-gateway/src/server/routes.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/kilo-gateway/src/server/routes.ts b/packages/kilo-gateway/src/server/routes.ts index e6f688913a8..83848ca132a 100644 --- a/packages/kilo-gateway/src/server/routes.ts +++ b/packages/kilo-gateway/src/server/routes.ts @@ -537,13 +537,13 @@ export function createKiloRoutes(deps: KiloRoutesDeps) { if (!token) return c.json({ error: "No valid token found" }, 401) // kilocode_change start - pass org context for org-scoped instances - const orgId = auth.type === "oauth" ? auth.accountId : undefined + const organizationId = auth.type === "oauth" ? auth.accountId : undefined const headers: Record = { Authorization: `Bearer ${token}`, "Content-Type": "application/json", } - if (orgId) { - headers[HEADER_ORGANIZATIONID] = orgId + if (organizationId) { + headers[HEADER_ORGANIZATIONID] = organizationId } // kilocode_change end @@ -596,13 +596,13 @@ export function createKiloRoutes(deps: KiloRoutesDeps) { if (!token) return c.json({ error: "No valid token found" }, 401) // kilocode_change start - pass org context for org-scoped instances - const orgId = auth.type === "oauth" ? auth.accountId : undefined + const organizationId = auth.type === "oauth" ? auth.accountId : undefined const headers: Record = { Authorization: `Bearer ${token}`, "Content-Type": "application/json", } - if (orgId) { - headers[HEADER_ORGANIZATIONID] = orgId + if (organizationId) { + headers[HEADER_ORGANIZATIONID] = organizationId } // kilocode_change end