( filePath: string, id: string, type: "application" | "compose", )
| 68 | }; |
| 69 | |
| 70 | export 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 | |
| 83 | export const updatePatch = async (patchId: string, data: Partial<Patch>) => { |
| 84 | const result = await db |
no outgoing calls
no test coverage detected