diff --git a/examples/github-appcards/netlify/functions/project-cards.js b/examples/github-appcards/netlify/functions/project-cards.js index 6af14f331..f52c88088 100644 --- a/examples/github-appcards/netlify/functions/project-cards.js +++ b/examples/github-appcards/netlify/functions/project-cards.js @@ -5,6 +5,7 @@ **/ import { createClient } from "@supabase/supabase-js"; import fetch from "node-fetch"; +import username from "../../src/constants.ts"; const supabase = createClient( process.env.VITE_DATABASE_URL, @@ -24,7 +25,9 @@ exports.handler = async function (event) { const gitHubProjectCard = body.gitHubProjectCard; const gitHubProjectColumnId = gitHubProjectCard.column_id; const gitHubIssueNumer = gitHubProjectCard.content_url - .split("https: //api.github.com/repos/bishopwm/github-cards/issues/") + .split( + "https:// api.github.com/repos/" + username + "/github-cards/issues/", + ) .pop(); const headers = {