fix: finalize account labels and confirmation

This commit is contained in:
2026-08-20 08:45:22 +03:00
parent dd2990357a
commit c6b79c1d35
6 changed files with 11 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ export async function updateAccount(
await client.query(
`UPDATE transactions
SET category_id = (SELECT id FROM categories WHERE name = 'Инвестиции' AND type = 'transfer' LIMIT 1),
direction = 'transfer', is_category_confirmed = FALSE, updated_at = NOW()
direction = 'transfer', is_category_confirmed = TRUE, updated_at = NOW()
WHERE account_id = $1 AND category_id IS NULL`,
[id],
);