winewoo_core 1.22.8 → 1.22.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 147e42b666dc4cc028025fe22a5b6d40700edf6f
4
- data.tar.gz: e0906e48ca177e6c5f0dad196a0505f0b3ae3828
3
+ metadata.gz: e08d36bca5d7376a358c378c8e41a2fd3dc0276c
4
+ data.tar.gz: 0a0a3f24374acd61fac22389824b6d4e38c7ed50
5
5
  SHA512:
6
- metadata.gz: 12e416f0b3169fd9599bc6a7fb549c38bce8a8d4c6688cc21c5c770a57b26b471289e6728eee2ff0a1f013ff33dc7a81be7c6b10a87e8d92bfe4877f6438d29e
7
- data.tar.gz: bbcf32509f93b82da02c2fe7b4fe0687c236b173940365efe3607ef9c8bff9c3323354348171eaf90d9a31acad59bc1b1ff4d40cc8d7f70097ce86f4b00ecf6f
6
+ metadata.gz: 2925c5e28deb6f25d5cbf33cb16e5f9132fec27a867bd2a68bbfda6019b37f78ae62e81c905e87e08f0bf7d4b25d3f1f0b3680f90f7f91070952adb3d2d9ef32
7
+ data.tar.gz: 7b067ec16d01e96d6823471efc82ceeeb11488f0dc3eabad07812e91cf70b06a4c759a7fe8b9546f4e62d237eb5579174e070fa2821812d13f51108f56dc544c
@@ -8,7 +8,7 @@ module WinewooCore::Services::ElasticSearch
8
8
  # TODO UNOFFICIALS
9
9
  # query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published
10
10
  Rails.logger.info "WINEWOO IDS #{ids.to_json}"
11
- query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.published
11
+ query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published
12
12
  query.find(ids)
13
13
  end
14
14
  end
@@ -10,7 +10,7 @@ module WinewooCore::Services::Finders::Wines
10
10
  # query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published
11
11
  query = @interpro ?
12
12
  WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published :
13
- WinewooCore::Repositories::Mongo::Queries::WineQuery.new.published
13
+ WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published
14
14
 
15
15
  query = query.with_appelation(search[:appelations] || search[:aoc])
16
16
  .with_colors(search[:colors])
@@ -4,7 +4,7 @@ module WinewooCore::Services::Finders::Wines
4
4
  def find
5
5
  wines = @filters.list_of_wines.map do |w|
6
6
  wine = Wine.find(w[:id])
7
- wine if wine.published?
7
+ wine if wine.published? && wine.official?
8
8
  # TODO UNOFFICIALS
9
9
  # wine if wine.published? && wine.official?
10
10
  end
@@ -2,7 +2,7 @@ module WinewooCore::Services::Finders::Wines
2
2
  class ProducerWinesFinder < WinesFinder
3
3
 
4
4
  def find
5
- query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new(@producer.wines)
5
+ query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new(@producer.wines).officials.published
6
6
  query = query.from_interpro(@interpro.id) if @interpro
7
7
 
8
8
  wines = query.page(@page || 1)
@@ -1,3 +1,3 @@
1
1
  module WinewooCore
2
- VERSION = "1.22.8"
2
+ VERSION = "1.22.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winewoo_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.8
4
+ version: 1.22.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasual Business