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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a496129cfbdd3c1baf7c98bd91ff410838b5dfd8
4
- data.tar.gz: e26016c832f991908e7fb4b81fbcc6d0c8ebed47
3
+ metadata.gz: 84ae092f0214492449d61bbb8e02725b73bc70cf
4
+ data.tar.gz: 2c041d63c54f311a4618d83e3f217a2495b45d50
5
5
  SHA512:
6
- metadata.gz: e1a74dfb513a1215bc97f90ae34064a86b17e181654710b557d197f7f024d6ef71abfb29baa3f7589749c9c7373512b5ef9ffa2238f0a63304a1249e4d8073d3
7
- data.tar.gz: ef2921b155568128158ee35b9385d86b8ad2255be97ad741f0eb52b399348f8489b437b94225105859ecb0b7fadb84fed36a21b9c6e720ef25d779d659d26e17
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
 
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.5.7.1.3"
3
+ VERSION = "1.5.7.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-scheduler-custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7.1.3
4
+ version: 1.5.7.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0