Find `message find-all` in CLI
This commit is contained in:
parent
82ed554aba
commit
9feb3d9ffc
|
@ -41,7 +41,7 @@ module Pigeon
|
|||
read { store[MESG_NS].fetch(multihash) }
|
||||
end
|
||||
|
||||
def find_all(author = Pigeon::LocalIdentity.current)
|
||||
def find_all(author = Pigeon::LocalIdentity.current.public_key)
|
||||
# TODO: Ability to pass an author ID to `find-all`
|
||||
store = Pigeon::Storage.current
|
||||
all = []
|
||||
|
|
|
@ -57,4 +57,7 @@ RSpec.describe Pigeon::Storage do
|
|||
actual_messages = Pigeon::Storage.current.find_all(author)
|
||||
search_results = Pigeon::Storage.current.find_all(author)
|
||||
end
|
||||
|
||||
it "finds all messages" do
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue