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

Function findProjectById

packages/server/src/services/project.ts:50–80  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

48};
49
50export const findProjectById = async (projectId: string) => {
51 const project = await db.query.projects.findFirst({
52 where: eq(projects.projectId, projectId),
53 with: {
54 environments: {
55 with: {
56 applications: true,
57 compose: true,
58 libsql: true,
59 mariadb: true,
60 mongo: true,
61 mysql: true,
62 postgres: true,
63 redis: true,
64 },
65 },
66 projectTags: {
67 with: {
68 tag: true,
69 },
70 },
71 },
72 });
73 if (!project) {
74 throw new TRPCError({
75 code: "NOT_FOUND",
76 message: "Project not found",
77 });
78 }
79 return project;
80};
81
82export const deleteProject = async (projectId: string) => {
83 const project = await db

Callers 15

runMySqlBackupFunction · 0.90
runMongoBackupFunction · 0.90
runComposeBackupFunction · 0.90
runLibsqlBackupFunction · 0.90
runPostgresBackupFunction · 0.90
runMariadbBackupFunction · 0.90
mysql.tsFile · 0.90
ai.tsFile · 0.90
mongo.tsFile · 0.90
compose.tsFile · 0.90
redis.tsFile · 0.90
libsql.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected