Skip to content

Commit e38dedb

Browse files
committed
Fixed clear()
1 parent a264906 commit e38dedb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state-store/sql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = class SQLStateStore {
7373

7474
clear() {
7575
return this.dbPromise.then(db =>
76-
getOne(db, `DROP TABLE ${this.tableName}`)
76+
getOne(db, `DELETE FROM ${this.tableName}`)
7777
);
7878
}
7979

0 commit comments

Comments
 (0)