Add current timestamp to callLogs api for reference when human is reading JSON

This commit is contained in:
Christopher Cookman 2026-02-18 16:52:51 -07:00
parent dbbe464533
commit f850288796

View file

@ -500,7 +500,7 @@ app.get("/api/v1/admin/callLogs", (req, res) => {
}
return newRow;
});
res.json({ totalPages, page, data: rows });
res.json({ totalPages, page, current_time: new Date().toISOString(), data: rows });
}).catch(err => {
console.error('Error getting call logs:', err);
res.status(500).json({ error: 'Internal server error' });