refactor(ynab): specify a budget when creating a connection

This commit is contained in:
Rıdvan Akca
2024-05-07 17:20:59 +02:00
parent 0f39007f92
commit 8eaf775ef2
5 changed files with 10 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ export default defineTrigger({
const balanceBelowAmount = $.step.parameters.balanceBelowAmount;
const formattedBalance = balanceBelowAmount * 1000;
const response = await $.http.get('/budgets/last-used/accounts');
const response = await $.http.get('/budgets/default/accounts');
if (response.data?.data?.accounts?.length) {
for (const account of response.data.data.accounts) {