guardar la firma
This commit is contained in:
parent
6c3ee2911b
commit
b766d37631
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class ReadingsController < ActionController::API
|
|||
reading = raspberry.readings.build reading_params
|
||||
reading.id = params[:transaction_uuid]
|
||||
# TODO: Verificar firma
|
||||
reading.signature = headers[:'X-Signature']
|
||||
reading.signature = request.headers[:'X-Signature']
|
||||
|
||||
params[:arduinos]&.each do |a|
|
||||
arduino = reading.arduinos.build local_id: a[:id], raspberry: raspberry
|
||||
|
|
Loading…
Reference in a new issue