An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: GitHub fixes
Andras Bacsai6529271de24f
diff --git a/src/lib/database/gitSources.ts b/src/lib/database/gitSources.tsindex a0c0b94eda..bed6769886 100644--- a/src/lib/database/gitSources.ts+++ b/src/lib/database/gitSources.ts@@ -67,16 +67,10 @@ export async function getSource({return body;}export async function addGitHubSource({ id, teamId, type, name, htmlUrl, apiUrl, organization }) {- await prisma.gitSource.update({+ return await prisma.gitSource.update({where: { id },data: { type, name, htmlUrl, apiUrl, organization }});- return await prisma.githubApp.create({- data: {- teams: { connect: { id: teamId } },- gitSource: { connect: { id } }- }- });}export async function addGitLabSource({id,diff --git a/src/routes/sources/[id]/_Github.svelte b/src/routes/sources/[id]/_Github.svelteindex 6d91f26997..b21640df1d 100644--- a/src/routes/sources/[id]/_Github.svelte+++ b/src/routes/sources/[id]/_Github.svelte@@ -80,7 +80,7 @@</script><div class="mx-auto max-w-4xl px-6">- {#if !source.githubApp?.installationId}+ {#if !source.githubAppId}<form on:submit|preventDefault={newGithubApp} class="py-4"><div class="flex space-x-1 pb-5 font-bold"><div class="title">General</div>@@ -171,7 +171,7 @@</form>{:else}<div class="text-center">- <button class=" bg-orange-600 mt-8" on:click={() => installRepositories(source)}+ <button class=" mt-8 bg-orange-600" on:click={() => installRepositories(source)}>Install Repositories</button></div>diff --git a/src/routes/sources/[id]/index.svelte b/src/routes/sources/[id]/index.svelteindex ffdd7d6a1b..4b12fe1c6a 100644--- a/src/routes/sources/[id]/index.svelte+++ b/src/routes/sources/[id]/index.svelte@@ -113,7 +113,7 @@</div><div class="flex flex-col justify-center">- {#if !source.gitlabAppId && (!source.githubAppId || !source.githubApp?.installationId)}+ {#if !source.gitlabAppId && !source.githubAppId}<div class="flex-col space-y-2 pb-10 text-center"><div class="text-xl font-bold text-white">Select a provider</div><div class="flex justify-center space-x-2">