(
Objects: {
Key: string;
}[]
)
| 48 | } |
| 49 | |
| 50 | export async function deleteFiles( |
| 51 | Objects: { |
| 52 | Key: string; |
| 53 | }[] |
| 54 | ) { |
| 55 | const command = new DeleteObjectsCommand({ |
| 56 | Bucket, |
| 57 | Delete: { |
| 58 | Objects, |
| 59 | Quiet: true, |
| 60 | }, |
| 61 | }); |
| 62 | return await s3Client.send(command); |
| 63 | } |
| 64 | |
| 65 | const getMimeType = (ext: string) => { |
| 66 | const mimes: Record<string, string> = { |
no test coverage detected