Skip to content

Commit

Permalink
Fix query.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Mar 11, 2024
1 parent 122df6d commit f2606a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynamoDbSafe.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class DynamoDB extends DynamoDbOriginal.DocumentClient {
const params = originalParams;
const capturedStack = { name: 'DynamoDB.update() Error:' };
Error.captureStackTrace(capturedStack);
const resultAsync = super.delete(params).promise().catch(error => {
const resultAsync = super.query(params).promise().catch(error => {
const wrappedError = new DynamoDbError({ message: error.message, method: 'Query', parameters: originalParams, dynamoDbStack: error.stack }, error.code);
wrappedError.stack = capturedStack;
throw wrappedError;
Expand Down

0 comments on commit f2606a6

Please sign in to comment.