This commit is contained in:
haad 2016-03-21 09:59:57 +01:00
parent 1b7bacd4bc
commit 73e18171e1
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ const OrbitNode = require('./OrbitNode');
const MaxBatchSize = 10; // How many items per sequence. Saves a snapshot to ipfs in batches of this many items.
const MaxHistory = 256; // How many items to fetch in the chain per join
// class IPFSLWWSet extends LWWSet {
class OrbitList {
constructor(ipfs, id, seq, ver, items) {
this.id = id;

View File

@ -40,7 +40,7 @@ class Posts {
if(post.type) delete post.type;
const res = await(ipfs.object.put(new Buffer(JSON.stringify({ Data: JSON.stringify(post) })), "json"));
resolve({ Post: post, Hash: res.Hash });
})
});
}
static get Types() {