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.

debug more

Andras Bacsaieef6b95e2422
diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts
index 62064cbc45..47149011a5 100644
--- a/apps/api/src/lib/common.ts
+++ b/apps/api/src/lib/common.ts
@@ -1284,13 +1284,14 @@ export async function getServiceFromDB({ id, teamId }: { id: string; teamId: str
});
let { type } = body
type = fixType(type)
-
+ console.log({body})
if (body?.serviceSecret.length > 0) {
body.serviceSecret = body.serviceSecret.map((s) => {
s.value = decrypt(s.value);
return s;
});
}
+ console.log({body2:body})
body[type] = { ...body[type], ...getUpdateableFields(type, body[type]) }
return { ...body, settings };
}
@@ -1582,6 +1583,7 @@ export function getUpdateableFields(type: string, data: any) {
update[k.name] = temp
});
}
+ console.log({update})
return update
}
diff --git a/apps/api/src/routes/api/v1/services/handlers.ts b/apps/api/src/routes/api/v1/services/handlers.ts
index 71f1cc149e..2ea954bad6 100644
--- a/apps/api/src/routes/api/v1/services/handlers.ts
+++ b/apps/api/src/routes/api/v1/services/handlers.ts
@@ -196,6 +196,7 @@ export async function getService(request: FastifyRequest<OnlyId>) {
try {
const teamId = request.user.teamId;
const { id } = request.params;
+ console.log({id, teamId})
const service = await getServiceFromDB({ id, teamId });
console.log(service)
if (!service) {