This commit is contained in:
Andras Bacsai
2022-03-01 15:30:39 +01:00
parent d2566e345a
commit a0795136ac

View File

@@ -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); 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); 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); body.gitSource.githubApp.privateKey = decrypt(body.gitSource.githubApp.privateKey);
} }
if (body?.gitSource?.gitlabApp?.appSecret) { if (body?.gitSource?.gitlabApp?.appSecret) {