Format Blink query observer
This commit is contained in:
@@ -102,7 +102,10 @@ export class Database {
|
|||||||
return this.db.isTransaction
|
return this.db.isTransaction
|
||||||
}
|
}
|
||||||
|
|
||||||
async observeQuery<T>(operation: string, query: () => Promise<T>): Promise<T> {
|
async observeQuery<T>(
|
||||||
|
operation: string,
|
||||||
|
query: () => Promise<T>,
|
||||||
|
): Promise<T> {
|
||||||
const startedAt = performance.now()
|
const startedAt = performance.now()
|
||||||
try {
|
try {
|
||||||
return await query()
|
return await query()
|
||||||
|
|||||||
Reference in New Issue
Block a user