Use new isCycleStartFunctions throughout cycle module
This commit is contained in:
1 parent
ca4cccfd65
commit
9188d84797
4 files changed
+218
-313
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user