diff --git a/app/controllers/readings_controller.rb b/app/controllers/readings_controller.rb index 058d701..103f3f0 100644 --- a/app/controllers/readings_controller.rb +++ b/app/controllers/readings_controller.rb @@ -28,7 +28,7 @@ class ReadingsController < ActionController::API end end - if reading.save + if raspberry.save render plain: reading.id, status: :ok else head :bad_request