diff options
Diffstat (limited to 'app/controllers/arches_controller.rb')
-rw-r--r-- | app/controllers/arches_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/arches_controller.rb b/app/controllers/arches_controller.rb index cbbcb65..c72e378 100644 --- a/app/controllers/arches_controller.rb +++ b/app/controllers/arches_controller.rb @@ -43,9 +43,9 @@ class ArchesController < ApplicationController def keyworded_packages(arch) Rails.cache.fetch("keyworded_packages/#{arch}", expires_in: 10.minutes) do - Change.filter_all({ change_type: 'keyword', arches: arch }, - size: 50, - sort: { created_at: { order: 'desc' } }).map do |change| + ChangeRepository.filter_all({ change_type: 'keyword', arches: arch }, + size: 50, + sort: { created_at: { order: 'desc' } }).map do |change| change.to_os(:change_type, :package, :category, :version, :arches, :created_at) end end @@ -53,9 +53,9 @@ class ArchesController < ApplicationController def stabled_packages(arch) Rails.cache.fetch("stabled_packages/#{arch}", expires_in: 10.minutes) do - Change.filter_all({ change_type: 'stable', arches: arch }, - size: 50, - sort: { created_at: { order: 'desc' } }).map do |change| + ChangeRepository.filter_all({ change_type: 'stable', arches: arch }, + size: 50, + sort: { created_at: { order: 'desc' } }).map do |change| change.to_os(:change_type, :package, :category, :version, :arches, :created_at) end end |