forked from trent_larson/crowd-funder-for-time-pwa
fix: resolve TypeScript errors in database service implementation
- Remove unnecessary generic type parameter from AbsurdSqlDatabaseService - Fix type handling in operation queue and result processing - Correct WebPlatformService dbGetOneRow implementation to use imported databaseService - Add proper type annotations for database operation results This commit improves type safety and fixes several TypeScript errors that were preventing proper type checking in the database service layer.
This commit is contained in:
@@ -381,4 +381,8 @@ export class WebPlatformService implements PlatformService {
|
||||
): Promise<{ changes: number; lastId?: number }> {
|
||||
return databaseService.run(sql, params);
|
||||
}
|
||||
|
||||
async dbGetOneRow(sql: string, params?: unknown[]): Promise<unknown[] | undefined> {
|
||||
return databaseService.query(sql, params).then((result: QueryExecResult[]) => result[0]?.values[0]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user