lucid-shopify 0.56.0 → 0.57.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lucid/shopify/bulk_request.rb +3 -1
- data/lib/lucid/shopify/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: 7c1fdb1699b2550ff42c9e707fca8a483281910066b4454c0a46472325f9ac9b
|
4
|
+
data.tar.gz: fb18e1fa4164cc1753bdeae3cb6c7b7c1120fe4437faf8d270ca9b3e547a4e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bcf5b74b4bd51e62df057b9280208439a376109497845794dddc78d2523ce92cc5f7dedc7385e1fc61d74d234f39db0c71f41fdeb8a3e6a98fc0a27f7788f0a
|
7
|
+
data.tar.gz: 78c4ec7ec01c43338f17fc5b25129285e2a28371da9afb20c8bedbd47ec5ae5379954d66f834b4740159d69a32110cfc48f27e7eabab101a6fca36e4ac260ac8
|
@@ -73,6 +73,8 @@ module Lucid
|
|
73
73
|
|
74
74
|
url = poll(id, delay: delay)
|
75
75
|
|
76
|
+
return if url.nil?
|
77
|
+
|
76
78
|
# TODO: Verify signature?
|
77
79
|
|
78
80
|
begin
|
@@ -96,7 +98,7 @@ module Lucid
|
|
96
98
|
# @param id [Integer] of the bulk operation
|
97
99
|
# @param delay [Integer]
|
98
100
|
#
|
99
|
-
# @return [String] the download URL
|
101
|
+
# @return [String, nil] the download URL, or nil if the result data is empty
|
100
102
|
private def poll(id, delay:)
|
101
103
|
op = client.post_graphql(credentials, <<~QUERY)['data']['currentBulkOperation']
|
102
104
|
{
|