mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
Refactor POSTs, add DirectoryPost.
This commit is contained in:
@@ -36,7 +36,7 @@ class Client {
|
||||
put: (key, data) => this.db.put(channel, password, key, data),
|
||||
get: (key, options) => {
|
||||
const items = this._iterator(channel, password, { key: key }).collect();
|
||||
return items[0] ? items[0].content : null;
|
||||
return items[0] ? items[0].content : null; // TODO: use KeyValuePost, currently .content is from TextPost
|
||||
},
|
||||
close: () => this._pubsub.unsubscribe(channel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user