diff --git a/app/controllers/v0/devices_controller.rb b/app/controllers/v0/devices_controller.rb index b10e9826..02d0818a 100644 --- a/app/controllers/v0/devices_controller.rb +++ b/app/controllers/v0/devices_controller.rb @@ -90,7 +90,6 @@ def fresh_world_map state: device.state, system_tags: device.system_tags, user_tags: device.user_tags, - added_at: device.created_at, updated_at: device.updated_at, last_reading_at: (device.last_reading_at.present? ? device.last_reading_at : nil) } diff --git a/app/models/device.rb b/app/models/device.rb index b9eb8db5..9c94c09a 100644 --- a/app/models/device.rb +++ b/app/models/device.rb @@ -211,7 +211,6 @@ def self.for_world_map state: device.state, system_tags: device.system_tags, user_tags: device.user_tags, - added_at: device.created_at, updated_at: device.updated_at, last_reading_at: (device.last_reading_at.present? ? device.last_reading_at : nil) } diff --git a/app/views/v0/users/_user.jbuilder b/app/views/v0/users/_user.jbuilder index bc4fbe5a..e9eef879 100644 --- a/app/views/v0/users/_user.jbuilder +++ b/app/views/v0/users/_user.jbuilder @@ -49,6 +49,5 @@ json.devices user.devices do |device| json.state device.state json.system_tags device.system_tags json.last_reading_at device.last_reading_at - json.added_at device.created_at.utc.iso8601 json.updated_at device.updated_at.utc.iso8601 end