This commit is contained in:
csiktorveh 2022-05-30 22:31:28 +02:00
parent 342f54ad46
commit 2fbd5683ae

View file

@ -29,7 +29,7 @@ export default async function(req: NextApiRequest, res: NextApiResponse) {
}
const data = await s3.listObjectsV2(params).promise()
data.Contents?.forEach((object: { Size: any }) => {
data.Contents?.forEach((object: any) => {
objects++
size += object.Size! / 1024 / 1024 / 1024
})