Skip to content

Commit

Permalink
fix(model): fixing batchDelete syntax bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Feb 17, 2019
1 parent 74623bf commit dfb448f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Model.js
Expand Up @@ -1520,7 +1520,7 @@ Model.batchDelete = async function (NewModel, keys, options, next) {

const batchRequests = await toBatchChunks(newModel$.name, keys, MAX_BATCH_WRITE_SIZE, async (key) => {
const key_element = {};
key_element[hashKeyName] = await schema.hashKey.toDynamo(key[hashKeyName]), undefined, key;
key_element[hashKeyName] = await schema.hashKey.toDynamo(key[hashKeyName], undefined, key);

if (schema.rangeKey) {
key_element[schema.rangeKey.name] = await schema.rangeKey.toDynamo(key[schema.rangeKey.name], undefined, key);
Expand Down

0 comments on commit dfb448f

Please sign in to comment.