contentful-scheduler-custom 1.6.7.5317 → 1.6.7.5318
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 +2 -1
- 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: 2c653758b7ebc5df33605ab0a6a68cb3b37d7c7a0c81a8d455807d72c4504c62
|
4
|
+
data.tar.gz: 7d9b7dfaf627b9983281d3190d82b76e10da10ff4fc6f8cbe7429a1a5801918b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9108d6b160f400e0bc80f30c8767d0c8dd4f33b5ae2be97406a881fc73ce73a08724181170161b68046887d5bed6ee3fa3b8dd62432171799f4fa48ff5e40ca
|
7
|
+
data.tar.gz: 5c864e6a81e809087eeb9975d43bdabad6f1011c7c64afcc489a447c01b8942442bc63b4eae28027dbc7a575eeea5519a3f3755ab16036a503e244f3f41c8434
|
@@ -29,9 +29,10 @@ module Contentful
|
|
29
29
|
if !linked_enteries.raw["includes"].nil? && !linked_enteries.raw["includes"]["Entry"].nil?
|
30
30
|
#logger.info "CHuby raw element is ==> #{linked_enteries.raw["includes"]["Entry"]}"
|
31
31
|
linkedEnteriesId = extract_element_ids(linked_enteries.raw["includes"]["Entry"])
|
32
|
+
logger.info("Linked enteries are #{linked_enteries}")
|
32
33
|
linkedEnteriesId.each do |id|
|
33
34
|
logger.info"Publishing linked entry with id #{id}"
|
34
|
-
logger.info "Linked entry is #{client.entries.find(space_id, id).
|
35
|
+
logger.info "Linked entry is publishDate is #{client.entries.find(space_id, id).sys[:publishedAt]}"
|
35
36
|
client.entries.find(space_id, id).publish
|
36
37
|
end
|
37
38
|
end
|