contentful-scheduler-custom 1.6.7.5216 → 1.6.7.5217

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
  SHA256:
3
- metadata.gz: 718a026db364d002daff283bebb884c1231b84bba779fdbbb75d0957b5144435
4
- data.tar.gz: 0653bd13d429d5fd14846afcca884a5a0109acd64b415ca201e5634c9e05ab78
3
+ metadata.gz: aa84f556c35bce8abc219635fdd82ceb511adad6c765ec5aaff83ed56ef9cb5a
4
+ data.tar.gz: 833bb7819a3307177d6d857af169064e46337761066e4e5e67aa2b905bef6f06
5
5
  SHA512:
6
- metadata.gz: d94f21a6354f1dd3204c30fccf1f17488b1a3691ec1b39ada87db497d7615a8a35b48b0dbd2fc5654b32ea2278c3b8c1598515dd98ef6f7ae4e6105c69d5d3ac
7
- data.tar.gz: 2c0d4535b544c7dedf4a71f0abd84b16d99ac2467f47d94b9078ae3fc882150940079f0cada6f48c684e6d8843ac92aa2bf084d554df34d559893c7d4ea836a4
6
+ metadata.gz: 2973f94ef1f60192b7394c755a6892a417ae690a1d54d0d598095d8f45056c06612d3175765dc595dce1dc060d5f7eb794d0fd1ff927b442da0be93a76a6750f
7
+ data.tar.gz: 2c325f8e26b9edd264294536a7f2c83d32ea6df2f12c576c1e0fac93275e6416e66b77e448c247bb2a13bdfc75cdcaafc925d35464c72362f061ab9a49d6d2aa
@@ -26,16 +26,16 @@ module Contentful
26
26
 
27
27
  linked_enteries = client1.entries(links_to_entry: entry_id)
28
28
 
29
- logger.info"Got enteries #{linked_enteries[:items].length}"
30
-
31
- linked_enteries[:items].each do |sys|
32
- logger.info"Publishing Linked Entery with id #{sys['sys']['id']}"
33
- client.entries.find(space_id, sys['sys']['id']).publish
34
- logger.info"Published Linked Enteries"
29
+ logger.info"Got enteries type is #{linked_enteries.sys.type}"
30
+
31
+ if linked_enteries.sys.type == 'Array'
32
+ linked_enteries.items.each do |sys|
33
+ logger.info"Publishing Linked Entery with id #{sys['sys']['id']}"
34
+ client.entries.find(space_id, sys['sys']['id']).publish
35
+ logger.info"Published Linked Enteries"
36
+ end
35
37
  end
36
38
 
37
-
38
-
39
39
  client.entries.find(space_id, entry_id).publish
40
40
  end
41
41
 
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5216"
3
+ VERSION = "1.6.7.5217"
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.6.7.5216
4
+ version: 1.6.7.5217
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0