From cf4dfa3aadfc6af19c2e7e6ce9b2ae322749b74a Mon Sep 17 00:00:00 2001 From: f Date: Thu, 3 Mar 2022 14:13:59 -0300 Subject: [PATCH] =?UTF-8?q?asignar=20la=20raspberry=20al=20arduino=20tambi?= =?UTF-8?q?=C3=A9n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/readings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/readings_controller.rb b/app/controllers/readings_controller.rb index 135df50..796fe1f 100644 --- a/app/controllers/readings_controller.rb +++ b/app/controllers/readings_controller.rb @@ -12,7 +12,7 @@ class ReadingsController < ActionController::API reading.signature = headers[:'X-Signature'] params[:arduinos]&.each do |a| - arduino = reading.arduinos.build local_id: a[:id] + arduino = reading.arduinos.build local_id: a[:id], raspberry: raspberry a[:sensores]&.each do |s| arduino.sensors.build(sensor_params s)