// Request has additional tags. Fetch all tags for this monitor.
constdbTags=awaittrx.getAll("SELECT tag.id, tag.name FROM tag JOIN monitor_tag ON monitor_tag.tag_id = tag.id AND monitor_tag.monitor_id = ?",[monitor.id]);
// For multiple tags with same name, get the oldest one.
constmonitorTags=awaittrx.getAll("SELECT tag.name, MIN(monitor_tag.id) id FROM monitor_tag JOIN tag ON tag.id = monitor_tag.tag_id AND monitor_tag.monitor_id = ? GROUP BY tag.name ORDER BY 1",[monitor.id]);