From 3e8478d17d9f02aeee41201916f4e1e23324c8ab Mon Sep 17 00:00:00 2001 From: Julian Dominguez-Schatz Date: Mon, 15 Jan 2024 01:55:32 -0500 Subject: [PATCH] Fix a bug where schedules wouldn't be marked as completed This was because the query that we previously used didn't select parent transactions, so no transaction was marked as being scheduled (since only parent transactions have schedule IDs). --- packages/loot-core/src/shared/schedules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/loot-core/src/shared/schedules.ts b/packages/loot-core/src/shared/schedules.ts index 52d2e0092dd..6dd26e63dcb 100644 --- a/packages/loot-core/src/shared/schedules.ts +++ b/packages/loot-core/src/shared/schedules.ts @@ -38,9 +38,9 @@ export function getHasTransactionsQuery(schedules) { }); return q('transactions') + .options({ splits: 'grouped' }) .filter({ $or: filters }) .orderBy({ date: 'desc' }) - .groupBy('schedule') .select(['schedule', 'date']); }