contentful-scheduler-custom 1.5.692 → 1.5.693
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contentful/scheduler/queue.rb +10 -4
- data/lib/contentful/scheduler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3515372bb94dd40d5c68d9165c909bc4f4e7337b
|
4
|
+
data.tar.gz: 557ee2faee06ce3c2df2890db7e9acf0031afbc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea1788ff3a96f58a46804a02cb56e4704909e0b9aa7106000948823e87813ad464f69451f69339373b2d7ca471ecaa7d38deed8e02ae92502d7f69955a25922
|
7
|
+
data.tar.gz: 086381f79a8ac670c4775f314d345807ee9d1baf72917b06f641c7518058c44033d830fffff2b709535d6f8f05f7c7eea9a9e8966191555c6ca6b9b383b904f5
|
@@ -15,13 +15,15 @@ module Contentful
|
|
15
15
|
|
16
16
|
def update_or_create(webhook)
|
17
17
|
if publishable?(webhook)
|
18
|
-
|
19
|
-
|
18
|
+
successPublish = update_or_create_for_publish(webhook)
|
19
|
+
updateContentBlocks(webhook, 'publish')
|
20
|
+
log_event_success(webhook, successPublish, 'publish', 'added to')
|
20
21
|
end
|
21
22
|
|
22
23
|
if unpublishable?(webhook)
|
23
|
-
|
24
|
-
|
24
|
+
successUnpublish = update_or_create_for_unpublish(webhook)
|
25
|
+
updateContentBlocks(webhook, 'unpublish')
|
26
|
+
log_event_success(webhook, successUnpublish, 'unpublish', 'added to')
|
25
27
|
end
|
26
28
|
end
|
27
29
|
|
@@ -67,6 +69,8 @@ module Contentful
|
|
67
69
|
::Contentful::Scheduler.config[:management_token]
|
68
70
|
)
|
69
71
|
|
72
|
+
removeContentBlocks(webhook, 'publish')
|
73
|
+
|
70
74
|
log_event_success(webhook, success, 'publish', 'removed from')
|
71
75
|
end
|
72
76
|
|
@@ -81,6 +85,8 @@ module Contentful
|
|
81
85
|
::Contentful::Scheduler.config[:management_token]
|
82
86
|
)
|
83
87
|
|
88
|
+
removeContentBlocks(webhook, 'unpublish')
|
89
|
+
|
84
90
|
log_event_success(webhook, success, 'unpublish', 'removed from')
|
85
91
|
end
|
86
92
|
|