la llave publica viene dentro del json

This commit is contained in:
f 2022-03-14 17:32:28 -03:00
parent d4e35dbb5e
commit 0612d16e6b

View file

@ -54,7 +54,7 @@ class ReadingsController < ActionController::API
r.tap do |r|
r.name = params[:controller_id]
r.serial_number = params[:serial_number]
r.public_keys.find_or_create_by(content: request.headers[:'X-Public-Key'])
r.public_keys.find_or_create_by(content: params[:public_key])
r.save
end
end