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

Function updatePatch

packages/server/src/services/patch.ts:83–99  ·  view source on GitHub ↗
(patchId: string, data: Partial<Patch>)

Source from the content-addressed store, hash-verified

81};
82
83export const updatePatch = async (patchId: string, data: Partial<Patch>) => {
84 const result = await db
85 .update(patch)
86 .set({
87 ...data,
88 ...(data.content && {
89 content: data.content.endsWith("\n")
90 ? data.content
91 : `${data.content}\n`,
92 }),
93 updatedAt: new Date().toISOString(),
94 })
95 .where(eq(patch.patchId, patchId))
96 .returning();
97
98 return result[0];
99};
100
101export const deletePatch = async (patchId: string) => {
102 const result = await db

Callers 2

patch.tsFile · 0.90
markPatchForDeletionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected