convertir valores en enteros antes de procesarlos
This commit is contained in:
parent
3ef7da3317
commit
3a1b78f238
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class ReadingsController < ActionController::API
|
|||
:sample,
|
||||
:signature,
|
||||
coordinates: %i[lat lng]).tap do |p|
|
||||
p[:timestamp] = Time.at p[:timestamp]
|
||||
p[:timestamp] = Time.at p[:timestamp].to_i
|
||||
rescue TypeError
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue