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, });