mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-06 22:26:41 +00:00
Cleanup
This commit is contained in:
parent
1b7bacd4bc
commit
73e18171e1
@ -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 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
|
const MaxHistory = 256; // How many items to fetch in the chain per join
|
||||||
|
|
||||||
// class IPFSLWWSet extends LWWSet {
|
|
||||||
class OrbitList {
|
class OrbitList {
|
||||||
constructor(ipfs, id, seq, ver, items) {
|
constructor(ipfs, id, seq, ver, items) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
@ -40,7 +40,7 @@ class Posts {
|
|||||||
if(post.type) delete post.type;
|
if(post.type) delete post.type;
|
||||||
const res = await(ipfs.object.put(new Buffer(JSON.stringify({ Data: JSON.stringify(post) })), "json"));
|
const res = await(ipfs.object.put(new Buffer(JSON.stringify({ Data: JSON.stringify(post) })), "json"));
|
||||||
resolve({ Post: post, Hash: res.Hash });
|
resolve({ Post: post, Hash: res.Hash });
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static get Types() {
|
static get Types() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user