Fixes reopenning after back button

This commit is contained in:
Sofiya Tepikin
2019-05-30 23:27:53 +02:00
parent a152b497fb
commit fa20e84bfe
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -55,6 +55,10 @@ export async function openDb (hash) {
return true
}
export function closeDb() {
db.close()
}
export function getBleedingDaysSortedByDate() {
return db.objects('CycleDay').filtered('bleeding != null').sorted('date', true)
}