mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
s3
This commit is contained in:
parent
342f54ad46
commit
2fbd5683ae
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue