Upgrade ruby gems and yarn packages.

This commit is contained in:
evazion
2020-06-16 00:35:16 -05:00
parent 1aa0f65187
commit ed152a780b
3 changed files with 61 additions and 78 deletions

View File

@@ -18,6 +18,7 @@ class SavedSearch < ApplicationRecord
post_ids = Set.new
queries.each do |query|
redis_key = "search:#{query}"
# XXX change to `exists?` (ref: https://github.com-sds/mock_redis/pull/188
if redis.exists(redis_key)
sub_ids = redis.smembers(redis_key).map(&:to_i)
post_ids.merge(sub_ids)