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.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
|
||||
|
|
Loading…
Reference in a new issue