still testing

This commit is contained in:
Anton Roslund 2025-04-19 09:34:40 +02:00
parent 8b84a3a91c
commit 189c89a7ca

View file

@ -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;
`;