feat: KoePi mehrere benannte oeffentliche Links statt nur einem, Migration des bestehenden Sina-Links, Name in Logs

This commit is contained in:
2026-07-18 22:47:55 +02:00
parent 7a0b53e894
commit 4c284a257b
6 changed files with 151 additions and 68 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, device, created_at
SELECT id, link_type, path, ip, location, device, link_name, created_at
FROM public_access_log
ORDER BY id DESC
LIMIT ?
@@ -562,6 +562,7 @@ router.get('/logs', authenticate, requireAdmin, (req, res) => {
ip: r.ip,
location: r.location,
device: r.device,
linkName: r.link_name,
}));
const combined = [...pushRows, ...accessRows]