mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
count on the index if we're using one, don't always take the store
This commit is contained in:
parent
bd2c70b923
commit
eabd303c8e
@ -120,7 +120,7 @@ export class QueryTargetWrapper<T> {
|
||||
|
||||
count(keyRange?: IDBKeyRange): IDBRequest<number> {
|
||||
try {
|
||||
return this._qtStore.count(keyRange);
|
||||
return this._qt.count(keyRange);
|
||||
} catch(err) {
|
||||
throw new IDBRequestAttemptError("count", this._qt, err, [keyRange]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user