MCPcopy Index your code
hub / github.com/Dokploy/dokploy / findPatchByFilePath

Function findPatchByFilePath

packages/server/src/services/patch.ts:70–81  ·  view source on GitHub ↗
(
	filePath: string,
	id: string,
	type: "application" | "compose",
)

Source from the content-addressed store, hash-verified

68};
69
70export const findPatchByFilePath = async (
71 filePath: string,
72 id: string,
73 type: "application" | "compose",
74) => {
75 return await db.query.patch.findFirst({
76 where: and(
77 eq(patch.filePath, filePath),
78 eq(type === "application" ? patch.applicationId : patch.composeId, id),
79 ),
80 });
81};
82
83export const updatePatch = async (patchId: string, data: Partial<Patch>) => {
84 const result = await db

Callers 2

patch.tsFile · 0.90
markPatchForDeletionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected