contentful-scheduler-custom-build-john 1.25 → 1.26
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: 7ab4d49e2a8f92854c79409f04fcc1d40497c8dd
|
4
|
+
data.tar.gz: 7b3f4032d07d6cfeb3b490e2d317aebf1aa3e9e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae518007f0dfa045134c8585e6180201e8acfdbbe3aa94df13221d6c49243e8f83955d3c6b4e46e4fc1a03352cf815fb77a957d4a9cda3112cff37fbc01d17c9
|
7
|
+
data.tar.gz: 7a565dc60a6430d1dd3d9167b67523c81239617fbe1bc11bf704f229157beaa9a722eb5b539e9590f3e961262a700b0ae8ad7017c43640c67d31ffd397a21625
|
@@ -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['id']}"
|
63
|
+
logger.info "Sys id is #{sys['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
|
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['id']}, space_id: #{webhook.space_id}} successfully added to queue"
|
72
|
+
logger.info "Webhook Content block {id: #{sys['sys']['id']}, space_id: #{webhook.space_id}} successfully added to queue"
|
73
73
|
else
|
74
|
-
logger.warn "Webhook Content block {id: #{sys['id']}, space_id: #{webhook.space_id}} couldn't be added to queue"
|
74
|
+
logger.warn "Webhook Content block {id: #{sys['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['id'],
|
86
|
+
sys['sys']['id'],
|
87
87
|
::Contentful::Scheduler.config[:management_token]
|
88
88
|
)
|
89
89
|
if success
|
90
|
-
logger.info "Webhook Content Block {id: #{sys['id']}, space_id: #{webhook.space_id}} successfully removed from queue"
|
90
|
+
logger.info "Webhook Content Block {id: #{sys['sys']['id']}, space_id: #{webhook.space_id}} successfully removed from queue"
|
91
91
|
else
|
92
|
-
logger.warn "Webhook Content Block {id: #{sys['id']}, space_id: #{webhook.space_id}} couldn't be removed from queue"
|
92
|
+
logger.warn "Webhook Content Block {id: #{sys['sys']['id']}, space_id: #{webhook.space_id}} couldn't be removed from queue"
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|