wco_models 3.1.0.178 → 3.1.0.180
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wco/leadset.rb +0 -2
- data/app/models/wco_email/message_stub.rb +6 -5
- 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: f642a96393ef6d8ed2327d0daeb1b5c6efd7cd9bc3ac00aef677e9fbf09b2900
|
4
|
+
data.tar.gz: 14f4726456a2105bd475f9f27f49902624e056bc09c06d1d9be234efbf251621
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3dbb0c24fa7dc107247cd56e224a73e3fde84b6c60e95a16ccbc70954bb8ec789192ea05168e064fc5b8e12738e8467ef0ae632df55ef7b666d314ba78c187e
|
7
|
+
data.tar.gz: cc147edd91dd938e98e8b860f79756e1d49963535b7b9dee3b0e040463733a9e0e4b20d9a3288e3e05d728d84cdf3007ed99d6d6b2bc336744de6dea715d0e4c
|
data/app/models/wco/leadset.rb
CHANGED
@@ -65,12 +65,10 @@ class Wco::Leadset
|
|
65
65
|
if self[:customer_id].blank?
|
66
66
|
return nil if !email.present?
|
67
67
|
existing = Stripe::Customer.search({ query: "email: '#{email}'" })
|
68
|
-
# puts! existing, 'existing'
|
69
68
|
if existing.data.present?
|
70
69
|
update_attributes( customer_id: existing.data[0][:id] )
|
71
70
|
else
|
72
71
|
customer = Stripe::Customer.create({ email: email })
|
73
|
-
# puts! customer, 'customer'
|
74
72
|
update_attributes( customer_id: customer[:id] )
|
75
73
|
end
|
76
74
|
end
|
@@ -222,11 +222,12 @@ class WcoEmail::MessageStub
|
|
222
222
|
;
|
223
223
|
else
|
224
224
|
## 2024-07-30 I'm no longer sending these to google.
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
225
|
+
## 2024-11-03 restarted sending.
|
226
|
+
conv = WcoEmail::Conversation.find( conv.id )
|
227
|
+
if conv.tags.include? Wco::Tag.inbox
|
228
|
+
out = WcoEmail::ApplicationMailer.forwarder_notify( @message.id.to_s )
|
229
|
+
Rails.env.production? ? out.deliver_later : out.deliver_now
|
230
|
+
end
|
230
231
|
end
|
231
232
|
|
232
233
|
puts 'ok'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.180
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ahoy_matey
|