motion-prime/api_client.rb in motion-prime-0.7.1 vs motion-prime/api_client.rb in motion-prime-0.7.2
- old
+ new
@@ -66,9 +66,11 @@
end
elsif progress
# handle progress
elsif !response.success? && options[:allow_queue] && config.allow_queue?
add_to_queue(method: method, path: path, params: params)
+ elsif response.operation.response.nil?
+ block.call if use_callback
else
block.call(prepared_object(response.object), response.operation.response.statusCode) if use_callback
process_queue
end
end
\ No newline at end of file