fix(files): list files command

This commit is contained in:
Karol Sójko 2023-12-14 13:08:18 +01:00
parent f275b48770
commit e6a21606a3
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -38,7 +38,8 @@ export class S3FileDownloader implements FileDownloaderInterface {
async listFiles(userUuid: string): Promise<{ name: string; size: number }[]> {
const objectsList = await this.s3Client.send(
new ListObjectsV2Command({
Bucket: `${this.s3BuckeName}/${userUuid}/`,
Bucket: this.s3BuckeName,
Prefix: userUuid,
}),
)