Skip to content

Commit

Permalink
Merge pull request #113 from coronasafe/rithviknishad/fix-112
Browse files Browse the repository at this point in the history
fixes #112; remove 30m timegate for BP
  • Loading branch information
khavinshankar authored Nov 7, 2023
2 parents a84a498 + 61cf88a commit 1d1383c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/controller/ObservationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,17 +526,7 @@ export class ObservationController {
observation?.device_id === client?.params?.ip
);

if (
lastObservationData["blood-pressure"]?.[client?.params?.ip!] &&
dayjs().diff(
dayjs(
lastObservationData["blood-pressure"]?.[client?.params?.ip!][
"date-time"
]
),
"minutes"
) < 30
) {
if (lastObservationData["blood-pressure"]?.[client?.params?.ip!]) {
filteredObservations?.push(
lastObservationData["blood-pressure"][client?.params?.ip!]
);
Expand Down

0 comments on commit 1d1383c

Please sign in to comment.