From 1626b3f80d921c9108f11cddba5a2766d3da5680 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Jun 2026 08:26:44 +1000 Subject: [PATCH] feat(devices): repo returns + patches icon Co-Authored-By: Claude Opus 4.8 --- lib/db/repos/lan_devices.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/repos/lan_devices.js b/lib/db/repos/lan_devices.js index 626dacd..ecce4a1 100644 --- a/lib/db/repos/lan_devices.js +++ b/lib/db/repos/lan_devices.js @@ -1,6 +1,6 @@ import { pool } from '../pool.js'; -const COLS = 'mac, ip, vendor, name, grp, note, status, randomized, flagged, first_seen, last_seen, present'; +const COLS = 'mac, ip, vendor, name, grp, note, status, randomized, flagged, first_seen, last_seen, present, icon'; export async function listKnown() { const { rows } = await pool.query( @@ -70,7 +70,7 @@ export async function prune() { return rowCount; } -const PATCHABLE = ['name', 'grp', 'note', 'status', 'flagged']; +const PATCHABLE = ['name', 'grp', 'note', 'status', 'flagged', 'icon']; export async function update(mac, patch) { const sets = [], vals = []; for (const k of PATCHABLE) {