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 +4 -4
- data/app/models/caboose_rets/notification.rb +4 -2
- data/lib/caboose_rets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 315ade1ef137b27cad9c1b1c0860a7da8e6dd3feab9a965467d56d4078cbe6d9
|
4
|
+
data.tar.gz: 9476364e035d5a7fc6e8a80faebfe36b2b3c3d3a75aaa7855601ebd7cc484a55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/caboose_rets/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|