commit: 2ebbd8d3908a6095aa4a1049b8c3e02b4ca979a6 Author: Alex Legler <alex <AT> a3li <DOT> li> AuthorDate: Sun Feb 22 23:11:34 2015 +0000 Commit: Alex Legler <a3li <AT> gentoo <DOT> org> CommitDate: Sun Feb 22 23:11:34 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=2ebbd8d3
also rename parameter name --- lib/storage.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/storage.rb b/lib/storage.rb index b4873d8..6bbb527 100644 --- a/lib/storage.rb +++ b/lib/storage.rb @@ -93,8 +93,8 @@ module Ag::Storage content end - def resolve_message_id(list, parent_message_id = nil) - return nil if parent_message_id == nil + def resolve_message_id(list, message_id = nil) + return nil if message_id == nil result = $es.search( index: 'ml-' + list, @@ -102,7 +102,7 @@ module Ag::Storage query: { filtered: { filter: { - term: { raw_message_id: parent_message_id } + term: { raw_message_id: message_id } } } },