contentful-scheduler-custom 1.6.7.5313 → 1.6.7.5314
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 -3
- 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: 102cb322c89c2f64bc0e01a52d99bc4d757d5ba4c11f62a8c69911307ec5940f
|
4
|
+
data.tar.gz: fb813e3675e6d0f91aa62af2324dfa19fa48963f86afde028ae8baf721c0e7a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbab93d8cba292fdeb4878b435d0d50824f9e9e1d5e1dc63becf63d29118a83b732239afaaf908c382efb53db1d4505ad0dd74e88cee0f2087d380c70afdcc7d
|
7
|
+
data.tar.gz: fe2e53a49c8000811a7363b1436da556d23fbb88c6cfe81f37455a31e6bb95ea61d20c475a470a8dea0b4f137982380d74b1fca3c6ba025bbade6c8b548cacdb
|
@@ -29,14 +29,13 @@ module Contentful
|
|
29
29
|
linked_enteries = client1.entries(links_to_entry: entry_id)
|
30
30
|
|
31
31
|
if !linked_enteries.raw["includes"].nil? && !linked_enteries.raw["includes"]["Entry"].nil?
|
32
|
-
logger.info "CHuby raw element is ==> #{linked_enteries.raw["includes"]["Entry"]}"
|
32
|
+
#logger.info "CHuby raw element is ==> #{linked_enteries.raw["includes"]["Entry"]}"
|
33
33
|
linkedEnteriesId = extract_element_ids(linked_enteries.raw["includes"]["Entry"])
|
34
34
|
linkedEnteriesId.each do |id|
|
35
|
+
logger.info"Publishing linked entry with id #{id}"
|
35
36
|
client.entries.find(space_id, id).publish
|
36
37
|
end
|
37
38
|
end
|
38
|
-
|
39
|
-
|
40
39
|
client.entries.find(space_id, entry_id).publish
|
41
40
|
end
|
42
41
|
|