Skip to content

Commit

Permalink
fix: lastMeasuredAt
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mauran committed Dec 26, 2024
1 parent c17e257 commit a32331b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/measure/MeasureService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export class MeasureService extends BaseService {
device._source.measures = {};
}

let lastMeasuredAt = 0;
let lastMeasuredAt = device._source.lastMeasuredAt ?? 0;

for (const measurement of measurements) {
if (measurement.origin.type !== "device") {
Expand Down

0 comments on commit a32331b

Please sign in to comment.