From e9016b38db284e94d164ea78354696bf94d200a5 Mon Sep 17 00:00:00 2001 From: coderhglee Date: Sat, 14 Jan 2023 12:01:21 +0900 Subject: [PATCH] fix: ignore ContributorInsightsSpecification options --- index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.js b/index.js index d29a9e3..f454edb 100644 --- a/index.js +++ b/index.js @@ -371,6 +371,17 @@ class ServerlessDynamodbLocal { }); } } + + if(migration.ContributorInsightsSpecification) { + delete migration.ContributorInsightsSpecification; + } + + if(migration.GlobalSecondaryIndexes) { + migration.GlobalSecondaryIndexes.filter((gsi) => gsi.ContributorInsightsSpecification).map((gsi) => { + delete gsi.ContributorInsightsSpecification; + }); + } + dynamodb.raw.createTable(migration, (err) => { if (err) { if (err.name === 'ResourceInUseException') {