contentful-scheduler-custom 1.6.7.5218 → 1.6.7.5219
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/tasks/publish.rb +3 -5
- data/lib/contentful/scheduler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c50131f6c516eb41fc7c27c54e4a2aad40848053ae9cdc17dee051a443d566df
|
4
|
+
data.tar.gz: 6ec1505d2256324183eb0b6dbda1b39c4d9a4e41e667b37ca4c378c38ae6306a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 937d0cdc4daa782c2ec47e587ce1e7e8942daef5e92f7c5f177cc0a292b862f31b3d892b6e9d64ab62fc30fc9fd8892ae5b3698d932ccd8236d34f0aa5e65ef7
|
7
|
+
data.tar.gz: 9a6c86fd1d1c3430e72c4f28e79aaa68569fd3374492cfa6c6bfb753f926df9edfe138c3d389ff322c2edb2ebd76717fd1cc714fee9ef47fec189595bcc13339
|
@@ -30,15 +30,13 @@ module Contentful
|
|
30
30
|
|
31
31
|
logger.info"Got enteries type is #{linked_enteries.class.name}"
|
32
32
|
|
33
|
-
|
34
|
-
if linked_enteries.sys.type == 'Array'
|
35
|
-
linked_enteries.items.each do |sys|
|
33
|
+
linked_enteries.each do |sys|
|
36
34
|
logger.info"Publishing Linked Entery with id #{sys['sys']['id']}"
|
37
35
|
client.entries.find(space_id, sys['sys']['id']).publish
|
38
36
|
logger.info"Published Linked Enteries"
|
39
37
|
end
|
40
|
-
|
41
|
-
|
38
|
+
|
39
|
+
|
42
40
|
|
43
41
|
client.entries.find(space_id, entry_id).publish
|
44
42
|
end
|