wco_models 3.1.0.178 → 3.1.0.181
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: 59595c2abce2bfeaff4cc69368d64f93add10025724562a638b4c06150a3e085
|
4
|
+
data.tar.gz: f377c7dbea5ced668ac641ff0f4f22ec601b0359b769a02c0c7aeb1bf9581e3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b4a0d418fb4127bd7d0505270cadeb41798f9e07c38336ef761fc34b5f22e58f1ef9b9afe3006983bdbd8dc42f3cb728a57884588bbcb56257a869a2785998b
|
7
|
+
data.tar.gz: fb41b2c8dd328646a2e64c4c499745fe5916783d7cb0a6425f67a98467122594f2a3ccc2a884576429fb56e272dc32462d9cc2ee93b6c4b670bfdeb84cb03df0
|
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.181
|
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
|