mirror of
https://github.com/skidoodle/albert.lol.git
synced 2026-04-28 03:07:40 +02:00
s3
This commit is contained in:
+1
-1
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user