guardar cambios antes de crear llaves
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
97b455d413
commit
9eab5ca0f6
1 changed files with 1 additions and 1 deletions
|
@ -54,8 +54,8 @@ 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: params[:public_key])
|
||||
r.save
|
||||
r.public_keys.find_or_create_by(content: params[:public_key])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue