lib/scrivito/revision.rb in scrivito_sdk-1.3.1 vs lib/scrivito/revision.rb in scrivito_sdk-1.4.0.rc1
- old
+ new
@@ -57,11 +57,16 @@
[result.uniq, tentative]
end
end
def internal_obj_mget(ids, result)
- response = api_request(
- :get, "/objs/mget", ids: ids, include_deleted: true)
+ request_options = [:get, "/objs/mget", ids: ids, include_deleted: true]
+
+ if base
+ response = api_request(*request_options)
+ else
+ response = workspace.api_request(*request_options)
+ end
current_result = result + response["results"]
if response["results"].size < ids.size
internal_obj_mget(ids.drop(response["results"].size), current_result)