From 8cc091e8ad2bc524e99a5c6ba5896599246d97f9 Mon Sep 17 00:00:00 2001 From: Jason Park Date: Fri, 6 Oct 2023 22:50:50 +0900 Subject: [PATCH] fix: hotfix --- lib/constructs/persistence/database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/constructs/persistence/database.ts b/lib/constructs/persistence/database.ts index 2db5e79f5..9ba3e9ca2 100644 --- a/lib/constructs/persistence/database.ts +++ b/lib/constructs/persistence/database.ts @@ -109,7 +109,7 @@ export class DynamoDatabase extends Construct { }); this.tables[Collection.THREAD].addGlobalSecondaryIndex({ indexName: 'UnivIDbyThreadIDIndex', - partitionKey: { name: 'univ_id', type: dynamodb.AttributeType.NUMBER }, + partitionKey: { name: 'univ_id', type: dynamodb.AttributeType.STRING }, sortKey: { name: 'thread_id', type: dynamodb.AttributeType.STRING }, projectionType: dynamodb.ProjectionType.ALL, });