feat: Logs zeigen jetzt auch Geraetetyp/Browser bei oeffentlichen Link-Besuchen
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user