Skip to content

Commit

Permalink
fix: abort error when upgrade db
Browse files Browse the repository at this point in the history
  • Loading branch information
SunriseFox committed Nov 22, 2019
1 parent e467a4d commit 9b42c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const db = openDB<PostDB>('maskbook-post-v2', 3, {
async upgrade(db, oldVersion, newVersion, transaction) {
if (oldVersion < 1) {
// inline keys
db.createObjectStore('post', { keyPath: 'identifier' })
return void db.createObjectStore('post', { keyPath: 'identifier' })
}
/**
* In the version 1 we use PostIdentifier to store post that identified by post iv
Expand Down

0 comments on commit 9b42c94

Please sign in to comment.