emailvision4rails 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,11 +12,15 @@ module Emailvision4rails
|
|
12
12
|
campaign = Campaign.new(payload[:campaign])
|
13
13
|
|
14
14
|
# Message
|
15
|
-
message.create
|
15
|
+
unless message.create
|
16
|
+
return false
|
17
|
+
end
|
16
18
|
|
17
19
|
# Campaign
|
18
20
|
campaign.message_id = message.id
|
19
|
-
campaign.create
|
21
|
+
unless campaign.create
|
22
|
+
return false
|
23
|
+
end
|
20
24
|
campaign.post
|
21
25
|
|
22
26
|
true
|