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

@@ -7,7 +7,7 @@ export default defineTrigger({
description: 'Triggers when a new transaction is created.',
async run($) {
const response = await $.http.get('/budgets/last-used/transactions');
const response = await $.http.get('/budgets/default/transactions');
const transactions = response.data.data?.transactions;
if (transactions?.length) {