refactor(gateway): rename orgId to organizationId for consistency

Align variable naming with existing patterns in the same file
(lines 326, 396).
This commit is contained in:
Catriel Müller
2026-04-02 14:28:23 -03:00
parent 09a1faf21e
commit 61ed399244
+6 -6
View File
@@ -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<string, string> = {
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<string, string> = {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
}
if (orgId) {
headers[HEADER_ORGANIZATIONID] = orgId
if (organizationId) {
headers[HEADER_ORGANIZATIONID] = organizationId
}
// kilocode_change end