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

Function findPatchById

packages/server/src/services/patch.ts:42–55  ·  view source on GitHub ↗
(patchId: string)

Source from the content-addressed store, hash-verified

40};
41
42export const findPatchById = async (patchId: string) => {
43 const result = await db.query.patch.findFirst({
44 where: eq(patch.patchId, patchId),
45 });
46
47 if (!result) {
48 throw new TRPCError({
49 code: "NOT_FOUND",
50 message: "Patch not found",
51 });
52 }
53
54 return result;
55};
56
57export const findPatchesByEntityId = async (
58 id: string,

Callers 1

patch.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected