contentful-scheduler-custom 1.6.7.5314 → 1.6.7.5315
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 +1 -2
- 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: 3d45829cec772c7cb52ea407663bd126a8b66d2674e9dfe9d158fffc3bf5f879
|
4
|
+
data.tar.gz: 8548279d96f406ed128f96af0e5ed260fcec60450414d6a3133e54ff0ad05e0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7159cb289778ff579b9f78b3e15b87209aec5ff5f8d13351761f07084851b06f7500a58c898a259d7f66372e3cddd054742c1eadf20372543bf0bc249fcb5748
|
7
|
+
data.tar.gz: 7f233abef395ee3a52bd4192b1e37c231cc4367c1ee61f2d8dbaae67e27857cccaec6fd48573ba5bee12527a197afa636f1b14d368bd65770d5a13db3bf67312
|
@@ -24,8 +24,6 @@ module Contentful
|
|
24
24
|
application_version: Contentful::Scheduler::VERSION
|
25
25
|
)
|
26
26
|
|
27
|
-
|
28
|
-
|
29
27
|
linked_enteries = client1.entries(links_to_entry: entry_id)
|
30
28
|
|
31
29
|
if !linked_enteries.raw["includes"].nil? && !linked_enteries.raw["includes"]["Entry"].nil?
|
@@ -33,6 +31,7 @@ module Contentful
|
|
33
31
|
linkedEnteriesId = extract_element_ids(linked_enteries.raw["includes"]["Entry"])
|
34
32
|
linkedEnteriesId.each do |id|
|
35
33
|
logger.info"Publishing linked entry with id #{id}"
|
34
|
+
logger.info "Linked entry is #{client.entries.find(space_id, id)}"
|
36
35
|
client.entries.find(space_id, id).publish
|
37
36
|
end
|
38
37
|
end
|