From 581eaff96c938e9acb3ce427bf743ef3504ae9c5 Mon Sep 17 00:00:00 2001 From: "Y.H LIEN" <85728908+LIEN-YUHSIANG@users.noreply.github.com> Date: Fri, 13 Oct 2023 04:14:53 +0900 Subject: [PATCH] fix: my new fix2 (#354) --- lib/constructs/persistence/database.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/constructs/persistence/database.ts b/lib/constructs/persistence/database.ts index 3c203dd56..9ba3e9ca2 100644 --- a/lib/constructs/persistence/database.ts +++ b/lib/constructs/persistence/database.ts @@ -147,10 +147,10 @@ export class DynamoDatabase extends Construct { this.tables[Collection.ADS] = new dynamodb.Table( this, - 'dynamodb-abs-table', + 'dynamodb-ads-table', { partitionKey: { name: 'board_id', type: dynamodb.AttributeType.STRING }, - sortKey: { name: 'ads_id', type: dynamodb.AttributeType.STRING }, + sortKey: { name: 'ad_id', type: dynamodb.AttributeType.STRING }, billingMode: dynamodb.BillingMode.PROVISIONED, encryption: dynamodb.TableEncryption.DEFAULT, removalPolicy: RemovalPolicy.RETAIN,