contentful-scheduler-custom-build-john 1.24 → 1.25
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/queue.rb +7 -7
- data/lib/contentful/scheduler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ce5019ade4da7395de138e780d1e5321d23b059
|
4
|
+
data.tar.gz: 958b3635d58401dca9974486cf731a887e2e9638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4d74e33942f5be64305ca0289395d0106065d4ce367fd9544f668cd09b877ba535d19aa1811810ef28611c6276082f107745e9b13fb123193c3b653bd3619c0
|
7
|
+
data.tar.gz: 14058ec73b045fce04fbf2ea657277858851004a3e55ee8ae6206170a488df3dc1b8aa4105786c53ea36a796c5073fa5ad66b3c8b71c5a71e908fae8ee37d007
|
@@ -60,18 +60,18 @@ module Contentful
|
|
60
60
|
if isContentBlockAvailable(webhook)
|
61
61
|
logger.info "COntent blocks #{webhook.fields['contentBlocks']['fi-FI']} successfully removed from queue"
|
62
62
|
webhook.fields['contentBlocks']['fi-FI'].each do |sys|
|
63
|
-
logger.info "Sys id is #{sys
|
63
|
+
logger.info "Sys id is #{sys['id']}"
|
64
64
|
success = Resque.enqueue_at(
|
65
65
|
publish_date(webhook),
|
66
66
|
::Contentful::Scheduler::Tasks::Publish,
|
67
67
|
webhook.space_id,
|
68
|
-
sys.id,
|
68
|
+
sys.sys['id'],
|
69
69
|
::Contentful::Scheduler.config[:spaces][webhook.space_id][:management_token]
|
70
70
|
)
|
71
71
|
if success
|
72
|
-
logger.info "Webhook Content block {id: #{sys
|
72
|
+
logger.info "Webhook Content block {id: #{sys['id']}, space_id: #{webhook.space_id}} successfully added to queue"
|
73
73
|
else
|
74
|
-
logger.warn "Webhook Content block {id: #{sys
|
74
|
+
logger.warn "Webhook Content block {id: #{sys['id']}, space_id: #{webhook.space_id}} couldn't be added to queue"
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
@@ -83,13 +83,13 @@ module Contentful
|
|
83
83
|
success = Resque.remove_delayed(
|
84
84
|
::Contentful::Scheduler::Tasks::Publish,
|
85
85
|
webhook.space_id,
|
86
|
-
sys
|
86
|
+
sys['id'],
|
87
87
|
::Contentful::Scheduler.config[:management_token]
|
88
88
|
)
|
89
89
|
if success
|
90
|
-
logger.info "Webhook Content Block {id: #{sys
|
90
|
+
logger.info "Webhook Content Block {id: #{sys['id']}, space_id: #{webhook.space_id}} successfully removed from queue"
|
91
91
|
else
|
92
|
-
logger.warn "Webhook Content Block {id: #{sys
|
92
|
+
logger.warn "Webhook Content Block {id: #{sys['id']}, space_id: #{webhook.space_id}} couldn't be removed from queue"
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|