(mountId: string)
| 295 | }; |
| 296 | |
| 297 | export const deleteMount = async (mountId: string) => { |
| 298 | const { type } = await findMountById(mountId); |
| 299 | |
| 300 | if (type === "file") { |
| 301 | await deleteFileMount(mountId); |
| 302 | } |
| 303 | |
| 304 | const deletedMount = await db |
| 305 | .delete(mounts) |
| 306 | .where(eq(mounts.mountId, mountId)) |
| 307 | .returning(); |
| 308 | return deletedMount[0]; |
| 309 | }; |
| 310 | |
| 311 | export const updateFileMount = async (mountId: string) => { |
| 312 | const mount = await findMountById(mountId); |
no test coverage detected