From 06e9b2f946ef20541203e8f8289998f094319b1b Mon Sep 17 00:00:00 2001 From: Felipe Forbeck Date: Tue, 12 Nov 2024 22:03:50 -0300 Subject: [PATCH] fix: drop consumer index --- upload-api/tables/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upload-api/tables/index.js b/upload-api/tables/index.js index 8af28e3f..87d7fed8 100644 --- a/upload-api/tables/index.js +++ b/upload-api/tables/index.js @@ -96,7 +96,8 @@ export const consumerTableProps = { }, primaryIndex: { partitionKey: 'subscription', sortKey: 'provider' }, globalIndexes: { - consumer: { partitionKey: 'consumer', projection: ['provider', 'subscription', 'customer'] }, + // Disabled the index so the SST can delete it from the table, and we can recreate it with the correct projected attributes + // consumer: { partitionKey: 'consumer', projection: ['provider', 'subscription', 'customer'] }, provider: { partitionKey: 'provider', projection: ['consumer'] }, customer: { partitionKey: 'customer', projection: ['consumer', 'provider', 'subscription', 'cause'] }, }