mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 03:32:54 -05:00
🐛 Fix on typed select (#4529)
* Fix on typed select * md * merge fix * linter
This commit is contained in:
@@ -268,9 +268,15 @@ async function linkPluggyAiAccount({
|
||||
);
|
||||
|
||||
if (upgradingId) {
|
||||
const accRow = await db.first('SELECT * FROM accounts WHERE id = ?', [
|
||||
upgradingId,
|
||||
]);
|
||||
const accRow = await db.first<db.DbAccount>(
|
||||
'SELECT * FROM accounts WHERE id = ?',
|
||||
[upgradingId],
|
||||
);
|
||||
|
||||
if (!accRow) {
|
||||
throw new Error(`Account with ID ${upgradingId} not found.`);
|
||||
}
|
||||
|
||||
id = accRow.id;
|
||||
await db.update('accounts', {
|
||||
id,
|
||||
|
||||
6
upcoming-release-notes/4529.md
Normal file
6
upcoming-release-notes/4529.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [lelemm]
|
||||
---
|
||||
|
||||
Fix on typed select (pluggy.ai).
|
||||
Reference in New Issue
Block a user