mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-22 06:46:38 +00:00
Cleanup
This commit is contained in:
parent
7b0d89873a
commit
da55984081
@ -11,7 +11,6 @@ class Operation {
|
|||||||
Operation._createOperation(ipfs, user, operation, key, value)
|
Operation._createOperation(ipfs, user, operation, key, value)
|
||||||
.then((op) => {
|
.then((op) => {
|
||||||
post = op.Post;
|
post = op.Post;
|
||||||
// console.log(op)
|
|
||||||
return log.add(op.Hash);
|
return log.add(op.Hash);
|
||||||
})
|
})
|
||||||
.then((node) => resolve({ node: node, op: post }))
|
.then((node) => resolve({ node: node, op: post }))
|
||||||
@ -24,8 +23,7 @@ class Operation {
|
|||||||
const data = {
|
const data = {
|
||||||
operation: operation,
|
operation: operation,
|
||||||
key: key,
|
key: key,
|
||||||
value: value,
|
value: value
|
||||||
by: user.id || 'empty'
|
|
||||||
};
|
};
|
||||||
Post.create(ipfs, Post.Types.OrbitDBItem, data)
|
Post.create(ipfs, Post.Types.OrbitDBItem, data)
|
||||||
.then(resolve)
|
.then(resolve)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user