fix(pulse): Increase sparkline history to 24h
Some checks failed
Test / backend-test (push) Has been cancelled
Test / frontend-test (push) Has been cancelled

This commit is contained in:
fullsizemalt 2026-01-07 22:46:23 -08:00
parent 477c31db65
commit 3023155fde

View file

@ -169,8 +169,8 @@ export class PulseService {
await Promise.all(devices.map(async (device) => {
try {
// Get 1 hour of history
const history = await this.getHistory(device.id, 1);
// Get 24 hours of history
const history = await this.getHistory(device.id, 24);
// Sort by timestamp ascending
results[device.id] = history.sort((a, b) =>
a.timestamp.getTime() - b.timestamp.getTime()