Fix maxHistory in all data stores

This commit is contained in:
haad
2016-07-08 10:44:21 +02:00
parent 61d113a018
commit 500f771a3b
2 changed files with 5 additions and 5 deletions

View File

@@ -14,10 +14,10 @@
"main": "src/OrbitDB.js",
"dependencies": {
"logplease": "^1.2.7",
"orbit-db-counterstore": "0.0.14",
"orbit-db-eventstore": "0.0.18",
"orbit-db-feedstore": "0.0.15",
"orbit-db-kvstore": "0.0.14",
"orbit-db-counterstore": "0.0.15",
"orbit-db-eventstore": "0.0.19",
"orbit-db-feedstore": "0.0.16",
"orbit-db-kvstore": "0.0.15",
"socket.io-client": "^1.4.5"
},
"devDependencies": {

View File

@@ -76,7 +76,7 @@ class OrbitDB {
store.events.on('close', this._onClose.bind(this));
if(subscribe && this._pubsub)
this._pubsub.subscribe(dbname, '', this._onMessage.bind(this));
this._pubsub.subscribe(dbname, '', this._onMessage.bind(this), store.options.maxHistory > 0);
return store.use(this.user.username);
}