Skip to content

Commit 880d4ac

Browse files
committed
fix: include user_metadata in listObjectsV2 direct query path
1 parent bdf7f2c commit 880d4ac

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/storage/database/knex.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,15 @@ export class StorageKnexDB implements Database {
380380
const query = knex
381381
.table('objects')
382382
.where('bucket_id', bucketId)
383-
.select(['id', 'name', 'metadata', 'updated_at', 'created_at', 'last_accessed_at'])
383+
.select([
384+
'id',
385+
'name',
386+
'metadata',
387+
'user_metadata',
388+
'updated_at',
389+
'created_at',
390+
'last_accessed_at',
391+
])
384392
.limit(options?.maxKeys || 100)
385393

386394
// only allow these values for sort columns, "name" is excluded intentionally as it is the default and used as tie breaker when sorting by other columns

0 commit comments

Comments
 (0)