renote_dac 0.0.147 → 0.0.149
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/workers/service_queue_worker.rb +6 -10
- data/lib/renote_dac/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74976c3aa9ea913bf79b9a6618202ec30ac9a8595c55bb056ddd1c35102bcf4e
|
4
|
+
data.tar.gz: 5165dbbe90d1b69726a8a4bae70d3027b489ead4ffd39f9965bf9bedc9d98a2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b97cda15c0a4e382df9e4dbad83f1569097eaed82cb34f622636a448440fbaef18d07d363f48a38f62b55671ffaacdd516b8b76cc91296d89ee62a8ed72e4396
|
7
|
+
data.tar.gz: 371957fd7f2defddf4f1d4d43c32050102f5b8548ee8e4d5536fdbd1301e760302fabd85f945fece42324a77f3e18da820f4f9b4f776dd4153236757ffcfc6aa
|
@@ -13,17 +13,13 @@ class ServiceQueueWorker
|
|
13
13
|
# changes
|
14
14
|
def work(message)
|
15
15
|
# invoke service object to save message to database
|
16
|
-
|
17
|
-
|
16
|
+
message = JSON.parse(message)
|
17
|
+
RenoteDac::Mailer.enqueue(
|
18
|
+
message['postmark_data']['template'],
|
19
|
+
message['postmark_data']['address'],
|
20
|
+
message['postmark_data']['params']
|
21
|
+
)
|
18
22
|
# let queue know message was received
|
19
23
|
ack!
|
20
24
|
end
|
21
|
-
|
22
|
-
private
|
23
|
-
|
24
|
-
def message_params(message)
|
25
|
-
binding.pry
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
25
|
end
|
data/lib/renote_dac/version.rb
CHANGED