Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #574 from 3box/hotfix/v1.10.8
Browse files Browse the repository at this point in the history
Hotfix/v1.10.8
  • Loading branch information
zachferland authored Sep 2, 2019
2 parents 7381076 + 735168e commit b83247c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release Notes

## v1.10.7 - 2019-08-22
* fix: ensureConnected consume db adddress, reconnect

## v1.10.7 - 2019-08-17
* fix: listAddressLinks now returns all links correctly
* fix: linkAddress now sends link to address-server
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "3box",
"version": "1.10.7",
"version": "1.10.8",
"description": "Interact with user data",
"main": "lib/3box.js",
"directories": {
Expand Down
6 changes: 3 additions & 3 deletions src/keyValueStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class KeyValueStore {
async set (key, value) {
throwIfUndefined(key, 'key')
this._requireLoad()
this._ensureConnected()
this._ensureConnected(this._db.address.toString())
const timeStamp = new Date().getTime()
await this._db.put(key, { value, timeStamp })
return true
Expand All @@ -85,7 +85,7 @@ class KeyValueStore {
async setMultiple (keys, values) {
throwIfNotEqualLenArrays(keys, values)
this._requireLoad()
this._ensureConnected()
this._ensureConnected(this._db.address.toString())
try {
await keys.reduce(async (previousPromise, nextKey, index) => {
await previousPromise
Expand All @@ -108,7 +108,7 @@ class KeyValueStore {
async remove (key) {
throwIfUndefined(key, 'key')
this._requireLoad()
this._ensureConnected()
this._ensureConnected(this._db.address.toString())
await this._db.del(key)
return true
}
Expand Down

0 comments on commit b83247c

Please sign in to comment.