disable remote servers for now

This commit is contained in:
Andras Bacsai 2022-09-08 15:00:54 +02:00
parent 63fa8924ae
commit 18e899d15e
2 changed files with 5 additions and 2 deletions

View File

@ -8,9 +8,11 @@ export async function listServers(request: FastifyRequest) {
try {
const userId = request.user.userId;
const teamId = request.user.teamId;
const remoteServers = await prisma.destinationDocker.findMany({ where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } }, distinct: ['remoteIpAddress', 'engine'] })
const servers = await prisma.destinationDocker.findMany({ where: { teams: { some: { id: teamId === '0' ? undefined : teamId } }, remoteEngine: false }, distinct: ['engine'] })
// const remoteServers = await prisma.destinationDocker.findMany({ where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } }, distinct: ['remoteIpAddress', 'engine'] })
return {
servers: remoteServers
servers
}
} catch ({ status, message }) {
return errorHandler({ status, message })

View File

@ -45,3 +45,4 @@
<h1 class="">Nothing here.</h1>
{/if}
</div>
<div class="text-xs text-center">Remote servers will be here soon</div>