fix: linting issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user