diff --git a/backend/src/services/pulse.service.ts b/backend/src/services/pulse.service.ts index c6de106..153b67f 100644 --- a/backend/src/services/pulse.service.ts +++ b/backend/src/services/pulse.service.ts @@ -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()