Skip to content

Commit

Permalink
Removing unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Dec 28, 2023
1 parent c8f7642 commit 96c0020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dynamoose/lib/utils/dynamoose/index_changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const index_changes = async (table: Table, existingIndexes = []): Promise<(Model
});

return !(expectedIndexes.GlobalSecondaryIndexes || []).find((searchIndex) => obj.equals(
sanitizeIndex(obj.pick(cleanedIndex, identicalProperties) as unknown as IndexItem),
sanitizeIndex(obj.pick(searchIndex as any, identicalProperties) as unknown as IndexItem)
sanitizeIndex(obj.pick(cleanedIndex, identicalProperties) as IndexItem),
sanitizeIndex(obj.pick(searchIndex as any, identicalProperties) as IndexItem)
));
}).map((index) => ({"name": index.IndexName as string, "type": TableIndexChangeType.delete}));
output.push(...deleteIndexes);
Expand Down

0 comments on commit 96c0020

Please sign in to comment.