refactor(db-compare): type errors

pull/1992/head
Elian Doran 2025-05-21 23:54:18 +07:00
parent 9a18fea073
commit 2f208a8302
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

@ -51,8 +51,8 @@ async function getMap(db: Database, query: string, params: any[] = []) {
return map;
}
async function getFlattenedResults(db: Database, key: string, query: string, params: any[] = []) {
const list = [];
async function getFlattenedResults<T>(db: Database, key: string, query: string, params: any[] = []) {
const list: T[] = [];
const result = await getResults(db, query, params);
for (const row of result) {