diff --git a/upload-api/tables/index.js b/upload-api/tables/index.js index ad5c6ff3..73c6ac97 100644 --- a/upload-api/tables/index.js +++ b/upload-api/tables/index.js @@ -26,7 +26,8 @@ export const uploadTableProps = { // space + root must be unique to satisfy index constraint primaryIndex: { partitionKey: 'space', sortKey: 'root' }, globalIndexes: { - cid: { partitionKey: 'root', projection: ['space', 'insertedAt'] } + cid: { partitionKey: 'root', projection: ['space', 'insertedAt'] }, + date: { partitionKey: 'insertedAt' , projection: ['root', 'space']} } }