diff --git a/pages/api/linear/[teamId]/[property]/comparisons.page.ts b/pages/api/linear/[teamId]/[property]/comparisons.page.ts index 0003553..fdebbc9 100644 --- a/pages/api/linear/[teamId]/[property]/comparisons.page.ts +++ b/pages/api/linear/[teamId]/[property]/comparisons.page.ts @@ -126,7 +126,7 @@ const postComparisons = async ( const issuesResponse = await fetch("https://api.linear.app/graphql", { method: "POST", headers: { - Authorization: `Bearer ${apiKey}`, + Authorization: apiKey, "Content-Type": "application/json", }, body: JSON.stringify({ diff --git a/utils/linear.ts b/utils/linear.ts index 2cfd19d..7dc4ef2 100644 --- a/utils/linear.ts +++ b/utils/linear.ts @@ -95,7 +95,7 @@ const getIssues = async ( const response = await fetch("https://api.linear.app/graphql", { method: "POST", headers: { - Authorization: `Bearer ${context.linearApiKey}`, + Authorization: context.linearApiKey, "Content-Type": "application/json", }, body: JSON.stringify({ @@ -180,7 +180,7 @@ const getIssue = async (context: Context, id: string): Promise => { const response = await fetch("https://api.linear.app/graphql", { method: "POST", headers: { - Authorization: `Bearer ${context.linearApiKey}`, + Authorization: context.linearApiKey, "Content-Type": "application/json", }, body: JSON.stringify({ @@ -287,7 +287,7 @@ const getRelations = async ( const response = await fetch("https://api.linear.app/graphql", { method: "POST", headers: { - Authorization: `Bearer ${context.linearApiKey}`, + Authorization: context.linearApiKey, "Content-Type": "application/json", }, body: JSON.stringify({ @@ -343,7 +343,7 @@ const updateIssue = async ( const response = await fetch("https://api.linear.app/graphql", { method: "POST", headers: { - Authorization: `Bearer ${linearApiKey}`, + Authorization: linearApiKey, "Content-Type": "application/json", }, body: JSON.stringify({