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

Function findMountById

packages/server/src/services/mount.ts:108–193  ·  view source on GitHub ↗
(mountId: string)

Source from the content-addressed store, hash-verified

106};
107
108export const findMountById = async (mountId: string) => {
109 const mount = await db.query.mounts.findFirst({
110 where: eq(mounts.mountId, mountId),
111 with: {
112 application: {
113 with: {
114 environment: {
115 with: {
116 project: true,
117 },
118 },
119 },
120 },
121 compose: {
122 with: {
123 environment: {
124 with: {
125 project: true,
126 },
127 },
128 },
129 },
130 libsql: {
131 with: {
132 environment: {
133 with: {
134 project: true,
135 },
136 },
137 },
138 },
139 mariadb: {
140 with: {
141 environment: {
142 with: {
143 project: true,
144 },
145 },
146 },
147 },
148 mongo: {
149 with: {
150 environment: {
151 with: {
152 project: true,
153 },
154 },
155 },
156 },
157 mysql: {
158 with: {
159 environment: {
160 with: {
161 project: true,
162 },
163 },
164 },
165 },

Callers 8

mount.tsFile · 0.90
createFileMountFunction · 0.85
findMountOrganizationIdFunction · 0.85
updateMountFunction · 0.85
deleteMountFunction · 0.85
updateFileMountFunction · 0.85
deleteFileMountFunction · 0.85
getBaseFilesPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected