Skip to content

Commit 3ebfdd9

Browse files
committed
Fix lint error
1 parent c2cf60b commit 3ebfdd9

File tree

1 file changed

+9
-3
lines changed
  • packages/loot-core/src/server/tools

1 file changed

+9
-3
lines changed

packages/loot-core/src/server/tools/app.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,19 @@ async function fixSplitTransactions(): Promise<{
125125
});
126126

127127
// 7. Clear categories of parent transactions
128-
const parentTransactionsWithCategory = await db.all<Pick<db.DbViewTransactionInternal, 'id'>>(`
128+
const parentTransactionsWithCategory = await db.all<
129+
Pick<db.DbViewTransactionInternal, 'id'>
130+
>(`
129131
SELECT id FROM transactions WHERE isParent = 1 AND category IS NOT NULL
130132
`);
131133

132134
console.log('parentTransactionsWithCategory', parentTransactionsWithCategory);
133135

134136
await runMutator(async () => {
135-
const updated = parentTransactionsWithCategory.map(({ id }) => ({ id, category: null }));
137+
const updated = parentTransactionsWithCategory.map(({ id }) => ({
138+
id,
139+
category: null,
140+
}));
136141
await batchUpdateTransactions({ updated });
137142
});
138143

@@ -142,7 +147,8 @@ async function fixSplitTransactions(): Promise<{
142147
numDeleted: deletedRows.length,
143148
numTransfersFixed: brokenTransfers.length,
144149
numNonParentErrorsFixed: errorRows.length,
145-
numParentTransactionsWithCategoryFixed: parentTransactionsWithCategory.length,
150+
numParentTransactionsWithCategoryFixed:
151+
parentTransactionsWithCategory.length,
146152
mismatchedSplits,
147153
};
148154
}

0 commit comments

Comments
 (0)