contentful-scheduler-custom 1.5.7.1.3 → 1.5.7.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/contentful/scheduler/queue.rb +5 -3
- 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: 84ae092f0214492449d61bbb8e02725b73bc70cf
|
4
|
+
data.tar.gz: 2c041d63c54f311a4618d83e3f217a2495b45d50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea4fce9233951ffcc5665a347ca4bfa93309d8b93d5e0c51b9d428db38ddba64954ab7c53494b1a9ddde5212ba733fbc0f20c53affe1e976bbfa88a7e5bac6d0
|
7
|
+
data.tar.gz: cfd8572f1333aa62ac6987c2768a187248ee0709c65ff62bb247428cb5f66cb6a6123686bc663a45de0688a66e7450539842b425c23feb70dfd1651f2c7eb2a6
|
@@ -151,7 +151,7 @@ module Contentful
|
|
151
151
|
end
|
152
152
|
|
153
153
|
def updateContentBlocks(webhook, type)
|
154
|
-
if isContentBlockAvailable(webhook)
|
154
|
+
if isContentBlockAvailable(webhook, type)
|
155
155
|
webhook.fields['contentBlocks']['fi-FI'].each do |sys|
|
156
156
|
success = Resque.enqueue_at(
|
157
157
|
getPublishOrUnpublishDate(webhook, type),
|
@@ -170,7 +170,7 @@ module Contentful
|
|
170
170
|
end
|
171
171
|
|
172
172
|
def removeContentBlocks(webhook, type)
|
173
|
-
if isContentBlockAvailable(webhook)
|
173
|
+
if isContentBlockAvailable(webhook, type)
|
174
174
|
webhook.fields['contentBlocks']['fi-FI'].each do |sys|
|
175
175
|
success = Resque.remove_delayed(
|
176
176
|
getScheduleType(type),
|
@@ -187,7 +187,9 @@ module Contentful
|
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
190
|
-
def isContentBlockAvailable(webhook)
|
190
|
+
def isContentBlockAvailable(webhook, type)
|
191
|
+
logger.info "Content type is ==>> #{ type }"
|
192
|
+
logger.info "Content Fields are ===>>> #{webhook.fields['contentBlocks']}"
|
191
193
|
return !webhook.fields['contentBlocks'].nil?
|
192
194
|
end
|
193
195
|
|