lib/blurb/request_collection.rb in blurb-0.4.5 vs lib/blurb/request_collection.rb in blurb-0.4.6
- old
+ new
@@ -37,11 +37,11 @@
request_type: :get
)
end
def create(**create_params)
- create_bulk([create_params])
+ create_bulk([create_params]).first
end
def create_bulk(create_array)
execute_bulk_request(
request_type: :post,
@@ -49,10 +49,10 @@
api_limit: 100
)
end
def update(**update_params)
- update_bulk([update_params])
+ update_bulk([update_params]).first
end
def update_bulk(update_array)
execute_bulk_request(
request_type: :put,