From a6ea2b7c066fe7aa90471c503022fca013061e5c Mon Sep 17 00:00:00 2001 From: Fabrizio Date: Wed, 2 Oct 2024 11:25:42 +0200 Subject: [PATCH] fix: return bucket_id on info (#546) --- src/storage/renderer/info.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/renderer/info.ts b/src/storage/renderer/info.ts index f49be7cc..5f8833a4 100644 --- a/src/storage/renderer/info.ts +++ b/src/storage/renderer/info.ts @@ -21,12 +21,13 @@ export class InfoRenderer extends HeadRenderer { id: obj.id, name: obj.name, version: obj.version, + bucket_id: obj.bucket_id, size: obj.metadata?.size ?? null, content_type: obj.metadata?.mimetype ?? null, cache_control: obj.metadata?.cacheControl ?? null, etag: obj.metadata?.eTag ?? null, metadata: obj.user_metadata, - last_modified: obj.metadata?.lastModified ?? null, + last_modified: obj.updated_at, created_at: obj.created_at, }, }