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) {