contentful-scheduler-custom 1.6.7.5239 → 1.6.7.5240
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 +10 -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: 61c0b6ee6a6caf8af82185882c555a1e48da4fafafb12323e4c8687113abf86e
|
4
|
+
data.tar.gz: 8ca2d32b63651e72bcbb9c8bcb70208bab509ce2bfa302392fbf9eeb7ccde61e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3861df4de59e57e54658cb25a26af774b957418a407cc5fe893e6e2d425028c9346d543ae2aa74b6164c8cd0088d09c1fed44471d02c364c7a56c71d2bfae59
|
7
|
+
data.tar.gz: 9b7fd90929fff96832bee6dec3100cba71af7f669d66e13a6c38cf580203d7ac15a7bd1a9ac174104f97332494d4a81e34c8e6df69665750fef73c14104689f2
|
@@ -23,7 +23,7 @@ module Contentful
|
|
23
23
|
application_version: Contentful::Scheduler::VERSION
|
24
24
|
)
|
25
25
|
|
26
|
-
|
26
|
+
|
27
27
|
|
28
28
|
linked_enteries = client1.entries(links_to_entry: entry_id)
|
29
29
|
|
@@ -33,14 +33,21 @@ module Contentful
|
|
33
33
|
|
34
34
|
linked_enteries.each do |entry|
|
35
35
|
entry.fields.each do |field|
|
36
|
-
field.class.to_s
|
36
|
+
logger.info "field class is #{field.class.to_s}"
|
37
37
|
if !field.sys.nil? && !field.sys.id.nil?
|
38
38
|
logger.info "field ids are #{field.sys.id}"
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
|
43
|
+
linked_enteries.items.each do |entry|
|
44
|
+
entry.fields.each do |field|
|
45
|
+
logger.info "items field class is #{field.class.to_s}"
|
46
|
+
if !field.sys.nil? && !field.sys.id.nil?
|
47
|
+
logger.info " items field ids are #{field.sys.id}"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
44
51
|
|
45
52
|
client.entries.find(space_id, entry_id).publish
|
46
53
|
end
|