Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #113 from bookchin/master
Browse files Browse the repository at this point in the history
v0.9.2
  • Loading branch information
bookchin committed Jun 24, 2016
2 parents a60b986 + 0c07666 commit 539024a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/storage/models/frame.js
Expand Up @@ -101,6 +101,12 @@ Frame.methods.addShard = function(shard, callback) {
return callback(err);
}

for (let s = 0; s < this.shards.length; s++) {
if (this.shards[s].hash === shard.hash) {
return callback(null);
}
}

this.shards.push(shard);
callback(null);
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "storj-bridge",
"version": "0.9.1",
"version": "0.9.2",
"description": "Access the Storj network using a simple REST API.",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 539024a

Please sign in to comment.