convertir valores en enteros antes de procesarlos

This commit is contained in:
f 2022-05-13 12:54:41 -03:00
parent 3ef7da3317
commit 3a1b78f238
1 changed files with 1 additions and 1 deletions

View File

@ -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