Use new isCycleStartFunctions throughout cycle module

This commit is contained in:
Julia Friesel
2018-10-25 09:18:25 +02:00
parent ca4cccfd65
commit 9188d84797
4 changed files with 218 additions and 313 deletions
+4
View File
@@ -51,6 +51,10 @@ export function getCycleDaysSortedByDate() {
return db.objects('CycleDay').sorted('date', true)
}
export function getCycleStartsSortedByDate() {
return db.objects('CycleDay').filtered('isCycleStart = true').sorted('date', true)
}
export function saveSymptom(symptom, cycleDay, val) {
db.write(() => {
if (symptom === 'bleeding') {