refactor(ynab): specify a budget when creating a connection
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user