(patchId: string)
| 99 | }; |
| 100 | |
| 101 | export const deletePatch = async (patchId: string) => { |
| 102 | const result = await db |
| 103 | .delete(patch) |
| 104 | .where(eq(patch.patchId, patchId)) |
| 105 | .returning(); |
| 106 | |
| 107 | return result[0]; |
| 108 | }; |
| 109 | |
| 110 | export const markPatchForDeletion = async ( |
| 111 | filePath: string, |