Skip to content

Commit 1942e55

Browse files
authored
Merge pull request #49 from obando777/bugfix/transactions-update
[Fix update transaction] make request been nested inside a data field
2 parents 55e85cb + 026c95f commit 1942e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/transactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class Transactions extends BaseResource {
6161
}
6262
}
6363

64-
return await this.httpPatch<UnitResponse<Transaction>>(`/accounts/${accountId}/transactions/${transactionId}`, data)
64+
return await this.httpPatch<UnitResponse<Transaction>>(`/accounts/${accountId}/transactions/${transactionId}`, {data})
6565
}
6666
}
6767

0 commit comments

Comments
 (0)