From a82a283023b2f9b2a91f9001c51cb94d2b81daaf Mon Sep 17 00:00:00 2001 From: Jason Kiesling Date: Sat, 9 May 2020 22:43:38 -0400 Subject: [PATCH] Return entire dataset on update --- app/controllers/api/v1/data_sets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/data_sets_controller.rb b/app/controllers/api/v1/data_sets_controller.rb index 10c5a86a5..456235b65 100644 --- a/app/controllers/api/v1/data_sets_controller.rb +++ b/app/controllers/api/v1/data_sets_controller.rb @@ -39,7 +39,7 @@ def append dataset.update_attributes(data: dataset.data.concat(newdata)) respond_to do |format| - format.json { render json: newdata, status: :ok } + format.json { render json: dataset, status: :ok } end else respond_to do |format|