Skip to content

Commit

Permalink
fix: gundb unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Jun 22, 2020
1 parent 9fefa2c commit 52624ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/gun/gun-middleware.js
Expand Up @@ -200,7 +200,10 @@ class GunDB implements StorageAPI {
resolve(true)
})
})
}).then(() => this.initIndexes())
}).then(_ => {
this.initIndexes()
return _
})
return this.ready
}

Expand Down

0 comments on commit 52624ec

Please sign in to comment.