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> {
|
||||
try {
|
||||
return this._qtStore.count(keyRange);
|
||||
return this._qt.count(keyRange);
|
||||
} catch(err) {
|
||||
throw new IDBRequestAttemptError("count", this._qt, err, [keyRange]);
|
||||
}
|
||||
|
|
Reference in a new issue