diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-02-20 23:14:24 +0100 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-02-20 23:14:24 +0100 |
commit | 26f1a40d9a10c988911f5a8e0ae1c4f9a156049f (patch) | |
tree | 582c49a0333e39939cc9a9f9fc842575c7dab589 /app/views/feeds/packages.atom.builder | |
parent | Add information about the committer (diff) | |
download | packages-5-26f1a40d9a10c988911f5a8e0ae1c4f9a156049f.tar.gz packages-5-26f1a40d9a10c988911f5a8e0ae1c4f9a156049f.tar.bz2 packages-5-26f1a40d9a10c988911f5a8e0ae1c4f9a156049f.zip |
Fix some searches ordered by 'date'
So far there was only one 'date' field in the ES commit
index. However, in the last commit, author_date and
committer_date have been introduced. A plain 'date'
field doesn't exist anymore. That's why searches
that are using 'date' to order the results have been
adjusted to use 'commmitter_date' instead.
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'app/views/feeds/packages.atom.builder')
-rw-r--r-- | app/views/feeds/packages.atom.builder | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/feeds/packages.atom.builder b/app/views/feeds/packages.atom.builder index 776510c..e2c82f9 100644 --- a/app/views/feeds/packages.atom.builder +++ b/app/views/feeds/packages.atom.builder @@ -13,7 +13,7 @@ atom_feed(id: atom_id(@feed_type, @feed_id, 'feed')) do |feed| all_packages.each do |package| atom = package.atom - commit = CommitRepository.find_sorted_by :packages, atom, :date, 'desc', 1 + commit = CommitRepository.find_sorted_by :packages, atom, :committer_date, 'desc', 1 commit = commit.first if package.nil? |