forked from mystiq/hydrogen-web
count on the index if we're using one, don't always take the store
This commit is contained in:
parent
bd2c70b923
commit
eabd303c8e
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ export class QueryTargetWrapper<T> {
|
||||||
|
|
||||||
count(keyRange?: IDBKeyRange): IDBRequest<number> {
|
count(keyRange?: IDBKeyRange): IDBRequest<number> {
|
||||||
try {
|
try {
|
||||||
return this._qtStore.count(keyRange);
|
return this._qt.count(keyRange);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
throw new IDBRequestAttemptError("count", this._qt, err, [keyRange]);
|
throw new IDBRequestAttemptError("count", this._qt, err, [keyRange]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue