Skip to content

Commit 6f8081f

Browse files
committed
Fix index name
1 parent 6a14071 commit 6f8081f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

infrastructure/terraform/components/api/ddb_table_letter_queue.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resource "aws_dynamodb_table" "letter_queue" {
1111
}
1212

1313
local_secondary_index {
14-
name = "queueTimestamp-index"
14+
name = "queueSortOrder-index"
1515
range_key = "queueTimestamp"
1616
projection_type = "ALL"
1717
}

internal/datastore/src/__test__/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const createLetterQueueTableCommand = new CreateTableCommand({
132132
IndexName: "timestamp-index",
133133
KeySchema: [
134134
{ AttributeName: "supplierId", KeyType: "HASH" }, // Partition key for LSI
135-
{ AttributeName: "queueTimestamp", KeyType: "RANGE" }, // Sort key for LSI
135+
{ AttributeName: "queueSortOrder-index", KeyType: "RANGE" }, // Sort key for LSI
136136
],
137137
Projection: {
138138
ProjectionType: "ALL",

0 commit comments

Comments
 (0)