mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user