Skip to content

Commit

Permalink
Update src/app-gocardless/app-gocardless.js
Browse files Browse the repository at this point in the history
Co-authored-by: Matiss Janis Aboltins <[email protected]>
  • Loading branch information
matt-fidd and MatissJanis committed Aug 25, 2024
1 parent 749b897 commit f7ba83b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app-gocardless/app-gocardless.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,13 @@ app.post(
app.post(
'/transactions',
handleError(async (req, res) => {
const { requisitionId, startDate, endDate, accountId, includeBalance } =
req.body;
const {
requisitionId,
startDate,
endDate,
accountId,
includeBalance = true,
} = req.body;

try {
if (includeBalance) {
Expand Down

0 comments on commit f7ba83b

Please sign in to comment.