mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-08-02 06:53:09 +02:00
still testing
This commit is contained in:
+1
-1
@@ -171,7 +171,7 @@ router.get('/battery-stats', async (req, res) => {
|
||||
const stats = await prisma.$queryRaw`
|
||||
SELECT id, recorded_at, avg_battery_level
|
||||
FROM battery_stats
|
||||
WHERE recorded_at >= NOW() - INTERVAL ${hours} DAY
|
||||
WHERE recorded_at >= NOW() - INTERVAL ${days} DAY
|
||||
ORDER BY recorded_at DESC;
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user