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

Function findApplicationById

packages/server/src/services/application.ts:94–123  ·  view source on GitHub ↗
(applicationId: string)

Source from the content-addressed store, hash-verified

92};
93
94export const findApplicationById = async (applicationId: string) => {
95 const application = await db.query.applications.findFirst({
96 where: eq(applications.applicationId, applicationId),
97 with: {
98 environment: { with: { project: true } },
99 domains: true,
100 deployments: true,
101 mounts: true,
102 redirects: true,
103 security: true,
104 ports: true,
105 gitlab: true,
106 github: true,
107 bitbucket: true,
108 gitea: true,
109 server: true,
110 previewDeployments: true,
111 registry: { columns: { password: false } },
112 buildRegistry: { columns: { password: false } },
113 rollbackRegistry: { columns: { password: false } },
114 },
115 });
116 if (!application) {
117 throw new TRPCError({
118 code: "NOT_FOUND",
119 message: "Application not found",
120 });
121 }
122 return application;
123};
124
125export const findApplicationByName = async (appName: string) => {
126 const application = await db.query.applications.findFirst({

Callers 15

createDomainFunction · 0.90
resolveServicePathFunction · 0.90
createDeploymentFunction · 0.90
ensurePatchRepoFunction · 0.90
readPatchRepoFileFunction · 0.90
createSecurityFunction · 0.90
deleteSecurityByIdFunction · 0.90
updateSecurityByIdFunction · 0.90
createRollbackFunction · 0.90
removeRollbackByIdFunction · 0.90
rollbackFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected