Skip to content

Commit

Permalink
fix promise not rejecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Moicky committed Apr 12, 2024
1 parent daaad19 commit 8482387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moicky/dynamodb",
"version": "2.5.1",
"version": "2.5.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "Contains a collection of convenience functions for working with AWS DynamoDB",
Expand Down
4 changes: 1 addition & 3 deletions src/transactions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ export class Transaction {
...args,
} satisfies TransactWriteItemsCommandInput;

return getClient()
.send(new TransactWriteItemsCommand(input))
.catch((err) => ({ ...err, args: input }));
return getClient().send(new TransactWriteItemsCommand(input));
}
}

0 comments on commit 8482387

Please sign in to comment.