feat: Logs zeigen jetzt auch Geraetetyp/Browser bei oeffentlichen Link-Besuchen

This commit is contained in:
2026-07-18 16:22:58 +02:00
parent b508d449b6
commit 8b1583de7c
7 changed files with 46 additions and 8 deletions

View File

@@ -549,7 +549,7 @@ router.get('/logs', authenticate, requireAdmin, (req, res) => {
}));
const accessRows = db.prepare(`
SELECT id, link_type, path, ip, location, created_at
SELECT id, link_type, path, ip, location, device, created_at
FROM public_access_log
ORDER BY id DESC
LIMIT ?
@@ -561,6 +561,7 @@ router.get('/logs', authenticate, requireAdmin, (req, res) => {
path: r.path,
ip: r.ip,
location: r.location,
device: r.device,
}));
const combined = [...pushRows, ...accessRows]