still testing
This commit is contained in:
parent
8b84a3a91c
commit
189c89a7ca
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ router.get('/battery-stats', async (req, res) => {
|
||||||
const stats = await prisma.$queryRaw`
|
const stats = await prisma.$queryRaw`
|
||||||
SELECT id, recorded_at, avg_battery_level
|
SELECT id, recorded_at, avg_battery_level
|
||||||
FROM battery_stats
|
FROM battery_stats
|
||||||
WHERE recorded_at >= NOW() - INTERVAL ${hours} DAY
|
WHERE recorded_at >= NOW() - INTERVAL ${days} DAY
|
||||||
ORDER BY recorded_at DESC;
|
ORDER BY recorded_at DESC;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue