Skip to content

Commit

Permalink
fix: added bucket_id,last_accessed_at and updated_at on object info (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitsinghkaler authored Jan 20, 2025
1 parent c8d9fd8 commit 13fd5fe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/http/routes/object/getObjectInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,17 @@ async function requestHandler(
obj = await request.storage
.asSuperUser()
.from(bucketName)
.findObject(objectName, 'id,name,version,metadata,user_metadata,created_at')
.findObject(
objectName,
'id,name,version,bucket_id,metadata,user_metadata,updated_at,created_at'
)
} else {
obj = await request.storage
.from(bucketName)
.findObject(objectName, 'id,name,version,metadata,user_metadata,created_at')
.findObject(
objectName,
'id,name,version,bucket_id,metadata,user_metadata,updated_at,created_at'
)
}

return request.storage.renderer(method).render(request, response, {
Expand Down

0 comments on commit 13fd5fe

Please sign in to comment.