feat: include last_seen in tag responses

This commit is contained in:
2026-05-16 20:53:54 +02:00
parent 0f0f377e98
commit 57075f66e8
2 changed files with 21 additions and 5 deletions
@@ -95,10 +95,14 @@ defmodule Localiser.Web.Controllers.TagController do
end
defp render_tag(tag) do
live = TagFilter.get_live_state(tag.tag_id)
%{
id: tag.id,
tag_id: tag.tag_id,
name: tag.name
id: tag.id,
tag_id: tag.tag_id,
name: tag.name,
room_id: live && live.room_id,
last_seen: live && live.last_seen
}
end