caboose-rets 0.1.188 → 0.1.189

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8e48b24e1a880d1a66959223aa22f6351d228fe23867a7aed24b996853a2628
4
- data.tar.gz: e72b0b61d9d661bb16833bf0e94b0a1a50674e6397c72c447ff8083ed7c8ac5f
3
+ metadata.gz: 315ade1ef137b27cad9c1b1c0860a7da8e6dd3feab9a965467d56d4078cbe6d9
4
+ data.tar.gz: 9476364e035d5a7fc6e8a80faebfe36b2b3c3d3a75aaa7855601ebd7cc484a55
5
5
  SHA512:
6
- metadata.gz: a5383bee3263d0878573c05553dba1405af1334547452357daab7472407568981cc9d8e21c4b20b9662a10ab5e8c9906ef02e1acf22f184f5d8b98082f845771
7
- data.tar.gz: de1ca6246f7ace6e9bcca1b60f1ccea31d1fd93961aacbc89aa6e324132ff95aa02aae95619821eb06ccf3793874edcecc9df0f777bb0cc50ae6f2549724e6e1
6
+ metadata.gz: cdbfdb54071aa93f7781431852a6e86e3db7943d8ab411ba7261ff74f07a8562f6d1888ef1e02d3b2b8eca0c69179291a698f34a1f2cb4817d3ef1b2029dc319
7
+ data.tar.gz: 30ca35eb2cb85865c433c0074cd7df8da9b07c5f794acc16900019c22b477c8b8a8d73e6b5cadfefa2a64b5d7318269c6740e954b50801ee0a331b0dace64f80
@@ -18,7 +18,7 @@ class CabooseRets::Notification < ActiveRecord::Base
18
18
  user_ids.each do |user_id|
19
19
  user = Caboose::User.where(uwhere).where(:id => user_id, :tax_exempt => false).first
20
20
  d1 = DateTime.now - 24.hours
21
- if user && user.site && user.site.use_rets
21
+ if user && user.site && user.site.use_rets && !Caboose::BouncedEmail.where(:email_address => user.email).exists?
22
22
  # Check if a similar notification has already been sent
23
23
  n = CabooseRets::Notification.where(
24
24
  :user_id => user.id,
@@ -64,7 +64,7 @@ class CabooseRets::Notification < ActiveRecord::Base
64
64
  user_ids.each do |user_id|
65
65
  user = Caboose::User.where(uwhere).where(:id => user_id, :tax_exempt => false).first
66
66
  d1 = DateTime.now - 24.hours
67
- if user && user.site && user.site.use_rets
67
+ if user && user.site && user.site.use_rets && !Caboose::BouncedEmail.where(:email_address => user.email).exists?
68
68
  # Check if a similar notification has already been sent
69
69
  n = CabooseRets::Notification.where(
70
70
  :user_id => user.id,
@@ -115,6 +115,8 @@ class CabooseRets::Notification < ActiveRecord::Base
115
115
 
116
116
  users.each do |user|
117
117
 
118
+ next if user.email.blank? || Caboose::BouncedEmail.where(:email_address => user.email).exists?
119
+
118
120
  puts "Gathering data for user: #{user.username}" if Rails.env.development?
119
121
 
120
122
  saved_mls = CabooseRets::SavedProperty.where(:user_id => user.id).pluck(:mls_number)
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.188'
2
+ VERSION = '0.1.189'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.188
4
+ version: 0.1.189
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-12 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms