Update realm version 3.6.5 -> 10.16.0
This commit is contained in:
+7
-1
@@ -58,6 +58,10 @@ export function closeDb() {
|
|||||||
db.close()
|
db.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mapRealmObjToJsObj(realmObj) {
|
||||||
|
return JSON.parse(JSON.stringify(realmObj))
|
||||||
|
}
|
||||||
|
|
||||||
export function getBleedingDaysSortedByDate() {
|
export function getBleedingDaysSortedByDate() {
|
||||||
return db
|
return db
|
||||||
.objects('CycleDay')
|
.objects('CycleDay')
|
||||||
@@ -70,8 +74,10 @@ export function getTemperatureDaysSortedByDate() {
|
|||||||
.filtered('temperature != null')
|
.filtered('temperature != null')
|
||||||
.sorted('date', true)
|
.sorted('date', true)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCycleDaysSortedByDate() {
|
export function getCycleDaysSortedByDate() {
|
||||||
return db.objects('CycleDay').sorted('date', true)
|
const cycleDays = db.objects('CycleDay').sorted('date', true)
|
||||||
|
return mapRealmObjToJsObj(cycleDays)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCycleStartsSortedByDate() {
|
export function getCycleStartsSortedByDate() {
|
||||||
|
|||||||
Generated
+14752
-405
File diff suppressed because it is too large
Load Diff
+2
-6
@@ -57,7 +57,7 @@
|
|||||||
"react-native-size-matters": "^0.4.0",
|
"react-native-size-matters": "^0.4.0",
|
||||||
"react-native-vector-icons": "^7.1.0",
|
"react-native-vector-icons": "^7.1.0",
|
||||||
"react-redux": "^6.0.0",
|
"react-redux": "^6.0.0",
|
||||||
"realm": "^3.6.5",
|
"realm": "^10.16.0",
|
||||||
"redux": "^4.0.1",
|
"redux": "^4.0.1",
|
||||||
"redux-starter-kit": "^0.6.3",
|
"redux-starter-kit": "^0.6.3",
|
||||||
"sympto": "2.0.0"
|
"sympto": "2.0.0"
|
||||||
@@ -107,9 +107,5 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitlab.com/bloodyhealth/drip/issues"
|
"url": "https://gitlab.com/bloodyhealth/drip/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/bloodyhealth/drip#README",
|
"homepage": "https://gitlab.com/bloodyhealth/drip#README"
|
||||||
"engines": {
|
|
||||||
"node": ">=10.0.0 <11",
|
|
||||||
"npm": ">=6.0.0 <7"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user