From fd138eb420b675b49ce0fde977835a0935644ff4 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Tue, 13 Mar 2018 20:09:20 -0400 Subject: [PATCH] Fix published_at sorting algolia article (#81) * Fix published_at sorting algolia article --- app/models/article.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/article.rb b/app/models/article.rb index f0c18eced..d3df7d029 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -137,7 +137,7 @@ class Article < ApplicationRecord ranking ["desc(positive_reactions_count)"] end add_replica "ordered_articles_by_published_at", inherit: true, per_environment: true do - ranking ["desc(published_at)"] + ranking ["desc(published_at_int)"] end end end