🐛 Fix on typed select (#4529)

* Fix on typed select

* md

* merge fix

* linter
This commit is contained in:
lelemm
2025-03-04 09:06:37 -03:00
committed by GitHub
parent c8d14cae09
commit abb6e86f35
2 changed files with 15 additions and 3 deletions

View File

@@ -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,

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [lelemm]
---
Fix on typed select (pluggy.ai).