Skip to content

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.

fix

Andras Bacsaia0795136ac50
diff --git a/src/lib/database/applications.ts b/src/lib/database/applications.ts
index 79ee38876c..64cc1444e6 100644
--- a/src/lib/database/applications.ts
+++ b/src/lib/database/applications.ts
@@ -135,13 +135,13 @@ export async function getApplication({ id, teamId }) {
}
});
- if (body.gitSource?.githubApp?.clientSecret) {
+ if (body?.gitSource?.githubApp?.clientSecret) {
body.gitSource.githubApp.clientSecret = decrypt(body.gitSource.githubApp.clientSecret);
}
- if (body.gitSource?.githubApp?.webhookSecret) {
+ if (body?.gitSource?.githubApp?.webhookSecret) {
body.gitSource.githubApp.webhookSecret = decrypt(body.gitSource.githubApp.webhookSecret);
}
- if (body.gitSource?.githubApp?.privateKey) {
+ if (body?.gitSource?.githubApp?.privateKey) {
body.gitSource.githubApp.privateKey = decrypt(body.gitSource.githubApp.privateKey);
}
if (body?.gitSource?.gitlabApp?.appSecret) {