Skip to content

Commit

Permalink
remove more spurious or duplicated timestamp fields
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Sep 29, 2023
1 parent 8f79118 commit d9a2ad9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/controllers/v0/devices_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion app/models/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,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)
}
Expand Down
1 change: 0 additions & 1 deletion app/views/v0/users/_user.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d9a2ad9

Please sign in to comment.