la llave publica viene dentro del json
This commit is contained in:
parent
d4e35dbb5e
commit
0612d16e6b
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class ReadingsController < ActionController::API
|
||||||
r.tap do |r|
|
r.tap do |r|
|
||||||
r.name = params[:controller_id]
|
r.name = params[:controller_id]
|
||||||
r.serial_number = params[:serial_number]
|
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
|
r.save
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue