revert debug

This commit is contained in:
Andras Bacsai
2022-08-12 19:29:53 +00:00
parent b63e516274
commit 29dc5a8bb4
3 changed files with 3 additions and 8 deletions

View File

@@ -1226,7 +1226,6 @@ export async function startTraefikTCPProxy(
} }
traefikUrl = `${ip}/webhooks/traefik/other.json` traefikUrl = `${ip}/webhooks/traefik/other.json`
} }
console.log(traefikUrl)
const tcpProxy = { const tcpProxy = {
version: '3.8', version: '3.8',
services: { services: {
@@ -1284,14 +1283,14 @@ export async function getServiceFromDB({ id, teamId }: { id: string; teamId: str
}); });
let { type } = body let { type } = body
type = fixType(type) type = fixType(type)
console.log({body})
if (body?.serviceSecret.length > 0) { if (body?.serviceSecret.length > 0) {
body.serviceSecret = body.serviceSecret.map((s) => { body.serviceSecret = body.serviceSecret.map((s) => {
s.value = decrypt(s.value); s.value = decrypt(s.value);
return s; return s;
}); });
} }
console.log({body2:body})
body[type] = { ...body[type], ...getUpdateableFields(type, body[type]) } body[type] = { ...body[type], ...getUpdateableFields(type, body[type]) }
return { ...body, settings }; return { ...body, settings };
} }
@@ -1583,7 +1582,6 @@ export function getUpdateableFields(type: string, data: any) {
update[k.name] = temp update[k.name] = temp
}); });
} }
console.log({update})
return update return update
} }

View File

@@ -395,7 +395,7 @@ export const fider = [{
isLowerCase: false, isLowerCase: false,
isNumber: false, isNumber: false,
isBoolean: false, isBoolean: false,
isEncrypted: false isEncrypted: true
}, },
{ {
name: 'emailMailgunDomain', name: 'emailMailgunDomain',

View File

@@ -196,9 +196,7 @@ export async function getService(request: FastifyRequest<OnlyId>) {
try { try {
const teamId = request.user.teamId; const teamId = request.user.teamId;
const { id } = request.params; const { id } = request.params;
console.log({id, teamId})
const service = await getServiceFromDB({ id, teamId }); const service = await getServiceFromDB({ id, teamId });
console.log(service)
if (!service) { if (!service) {
throw { status: 404, message: 'Service not found.' } throw { status: 404, message: 'Service not found.' }
} }
@@ -206,7 +204,6 @@ export async function getService(request: FastifyRequest<OnlyId>) {
service service
} }
} catch ({ status, message }) { } catch ({ status, message }) {
console.log({status, message})
return errorHandler({ status, message }) return errorHandler({ status, message })
} }
} }