contentful-scheduler-custom 1.5.691 → 1.5.692
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 +3 -9
- 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: 9feb25b3fdd58bec42d464a39c08b08f1e970b0f
|
4
|
+
data.tar.gz: cece0ae43d9442ec5f3cd554d3a389bfa092cd36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34ad530243b750062241d4b35081ff37cd8bc0e0e369e1bb442067c769a33a212f4c15fd86bc63ae464b2d412fb3bc0bb503edb5371fdd50c743667a74b0b837
|
7
|
+
data.tar.gz: f8994afc6e9b7bb386493b448ae0663cc1857e75e58ceb55919acdfb33e409930ad140a112b94a371743074ff8d54068a15e33bd65b19e5a873876dd0726d49a
|
@@ -15,15 +15,13 @@ module Contentful
|
|
15
15
|
|
16
16
|
def update_or_create(webhook)
|
17
17
|
if publishable?(webhook)
|
18
|
-
|
19
|
-
updateContentBlocks(webhook, 'publish')
|
18
|
+
success = update_or_create_for_publish(webhook)
|
20
19
|
log_event_success(webhook, success, 'publish', 'added to')
|
21
20
|
end
|
22
21
|
|
23
22
|
if unpublishable?(webhook)
|
24
|
-
|
25
|
-
|
26
|
-
log_event_success(webhook, successUnpublish, 'unpublish', 'added to')
|
23
|
+
success = update_or_create_for_unpublish(webhook) && success
|
24
|
+
log_event_success(webhook, success, 'unpublish', 'added to')
|
27
25
|
end
|
28
26
|
end
|
29
27
|
|
@@ -69,8 +67,6 @@ module Contentful
|
|
69
67
|
::Contentful::Scheduler.config[:management_token]
|
70
68
|
)
|
71
69
|
|
72
|
-
removeContentBlocks(webhook, 'publish')
|
73
|
-
|
74
70
|
log_event_success(webhook, success, 'publish', 'removed from')
|
75
71
|
end
|
76
72
|
|
@@ -85,8 +81,6 @@ module Contentful
|
|
85
81
|
::Contentful::Scheduler.config[:management_token]
|
86
82
|
)
|
87
83
|
|
88
|
-
removeContentBlocks(webhook, 'unpublish')
|
89
|
-
|
90
84
|
log_event_success(webhook, success, 'unpublish', 'removed from')
|
91
85
|
end
|
92
86
|
|