Skip to content

Commit 4ebc11b

Browse files
authored
Update ObjectStoreProvider.ts
1 parent fc6f11c commit 4ebc11b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ObjectStoreProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ export abstract class DbProvider {
240240

241241
clearAllData(): Promise<void> {
242242
var storeNames = this._schema!!!.stores.map((store) => store.name);
243+
return this.clearStores(storeNames);
244+
}
243245

246+
clearStores(storeNames: string[]): Promise<void> {
244247
return this.openTransaction(storeNames, true).then((trans) => {
245248
const clearers = storeNames.map((storeName) => {
246249
const store = attempt(() => {

0 commit comments

Comments
 (0)