Skip to content

Commit

Permalink
disable remote servers for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Sep 8, 2022
1 parent 63fa892 commit 18e899d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/api/src/routes/api/v1/servers/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
1 change: 1 addition & 0 deletions apps/ui/src/routes/servers/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@
<h1 class="">Nothing here.</h1>
{/if}
</div>
<div class="text-xs text-center">Remote servers will be here soon</div>

0 comments on commit 18e899d

Please sign in to comment.