MCPcopy
hub / github.com/Dokploy/dokploy / findServersByUserId

Function findServersByUserId

packages/server/src/services/server.ts:56–67  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

54};
55
56export const findServersByUserId = async (userId: string) => {
57 const orgs = await db.query.organization.findMany({
58 where: eq(organization.ownerId, userId),
59 with: {
60 servers: true,
61 },
62 });
63
64 const servers = orgs.flatMap((org) => org.servers);
65
66 return servers;
67};
68
69export const deleteServer = async (serverId: string) => {
70 const currentServer = await db

Callers 2

stripe.tsFile · 0.90
server.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected