forked from trent_larson/crowd-funder-for-time-pwa
add SQL DB access to everywhere we are using the DB, up to the "C" files
This commit is contained in:
@@ -365,7 +365,10 @@ export class WebPlatformService implements PlatformService {
|
||||
/**
|
||||
* @see PlatformService.dbQuery
|
||||
*/
|
||||
dbQuery(sql: string, params?: unknown[]): Promise<QueryExecResult> {
|
||||
dbQuery(
|
||||
sql: string,
|
||||
params?: unknown[],
|
||||
): Promise<QueryExecResult | undefined> {
|
||||
return databaseService.query(sql, params).then((result) => result[0]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user