webcss / angular-indexedDB

An angularjs serviceprovider to utilize indexedDB with angular
149 stars 99 forks source link

Fixed insert and upsert never resolving #25

Closed hamstercat closed 10 years ago

hamstercat commented 10 years ago

Both ObjectStore.insert and ObjectStore.upsert never resolve their promise because of an index comparison that is never true. Changing the comparison to be between the index and the length of the data - 1 resolves the problem.