Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Feb 21, 2023
1 parent 81f8853 commit 3ae1e7e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/api/src/lib/services/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,15 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
}
const customVolumes = await prisma.servicePersistentStorage.findMany({ where: { serviceId: id } })
let volumes = new Set()
console.log(template.services[s].volumes)
if (arm && template.services[s]?.volumesArm?.length > 0) {
template.services[s].volumesArm.forEach(v => volumes.add(v))
} else {
if (template.services[s]?.volumes?.length > 0) {
template.services[s].volumes.forEach(v => volumes.add(v))
}
}

// Workaround: old plausible analytics service wrong volume id name
if (service.type === 'plausibleanalytics' && service.plausibleAnalytics?.id) {
console.log('old plausible analytics service')
let temp = Array.from(volumes)
temp.forEach(a => {
const t = a.replace(service.id, service.plausibleAnalytics.id)
Expand All @@ -103,7 +100,6 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
}
}
}
console.log(s, Array.from(volumes))
let ports = []
if (template.services[s].proxy?.length > 0) {
for (const proxy of template.services[s].proxy) {
Expand Down

0 comments on commit 3ae1e7e

Please sign in to comment.