calculates cycle days for headaches

This commit is contained in:
tina
2024-10-15 17:52:38 +02:00
parent fd6f39fbc4
commit a4e0fa64e9
3 changed files with 53 additions and 16 deletions
+3
View File
@@ -73,6 +73,9 @@ export function getTemperatureDaysSortedByDate() {
.filtered('temperature != null')
.sorted('date', true)
}
export function getPainDaysSortedByDate() {
return db.objects('CycleDay').filtered('pain != null').sorted('date', true)
}
export function getCycleDaysSortedByDate() {
const cycleDays = db.objects('CycleDay').sorted('date', true)