feat: KoePi mehrere benannte oeffentliche Links statt nur einem, Migration des bestehenden Sina-Links, Name in Logs
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, 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]
|
||||
|
||||
Reference in New Issue
Block a user