Skip to content

Commit

Permalink
Coderabbit review
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy authored Mar 1, 2025
1 parent 3a37adf commit 125f854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/loot-core/src/server/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export async function insertCategory(
}

if (atEnd) {
const lastCat = await first<Pick<DbCategoryGroup, 'sort_order'>>(`
const lastCat = await first<Pick<DbCategory, 'sort_order'>>(`
SELECT sort_order FROM categories WHERE tombstone = 0 ORDER BY sort_order DESC, id DESC LIMIT 1
`);
sort_order = (lastCat ? lastCat.sort_order : 0) + SORT_INCREMENT;
Expand Down

0 comments on commit 125f854

Please sign in to comment.