mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -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) {
|
if (upgradingId) {
|
||||||
const accRow = await db.first('SELECT * FROM accounts WHERE id = ?', [
|
const accRow = await db.first<db.DbAccount>(
|
||||||
upgradingId,
|
'SELECT * FROM accounts WHERE id = ?',
|
||||||
]);
|
[upgradingId],
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!accRow) {
|
||||||
|
throw new Error(`Account with ID ${upgradingId} not found.`);
|
||||||
|
}
|
||||||
|
|
||||||
id = accRow.id;
|
id = accRow.id;
|
||||||
await db.update('accounts', {
|
await db.update('accounts', {
|
||||||
id,
|
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