fix s3 adapter

This commit is contained in:
dswbx
2025-02-14 11:42:26 +01:00
parent 9c38c8f2ad
commit 24e69eec90
6 changed files with 16 additions and 25 deletions

View File

@@ -122,18 +122,7 @@ export class StorageS3Adapter extends AwsClient implements StorageAdapter {
if (res.ok) {
// "df20fcb574dba1446cf5ec997940492b"
const etag = String(res.headers.get("etag"));
if (isFile(body)) {
return {
etag,
name: body.name,
meta: {
size: body.size,
type: body.type
}
};
}
return etag;
return String(res.headers.get("etag"));
}
return undefined;