fix: linting issues

This commit is contained in:
Matthew Raymer
2025-05-28 14:02:02 +00:00
parent cd47c1014c
commit 97027cb025
4 changed files with 40 additions and 6 deletions

View File

@@ -123,6 +123,7 @@ class AbsurdSqlDatabaseService implements DatabaseService {
if (!operation) continue;
try {
let queryResult: QueryExecResult[] = [];
let result: unknown;
switch (operation.type) {
case "run":
@@ -132,11 +133,11 @@ class AbsurdSqlDatabaseService implements DatabaseService {
result = await this.db.exec(operation.sql, operation.params);
break;
case "getOneRow":
const queryResult = await this.db.exec(operation.sql, operation.params);
queryResult = await this.db.exec(operation.sql, operation.params);
result = queryResult[0]?.values[0];
break;
case "getAll":
const allResult = await this.db.exec(operation.sql, operation.params);
queryResult = await this.db.exec(operation.sql, operation.params);
result = allResult[0]?.values || [];
break;
}