Replacing PouchDB indexes (used only to get the list of Gpxes by a custom implementation.

This commit is contained in:
vdv committed 2022-12-11 10:45:08 +01:00
1 parent 8c82b9c040
commit 3a5f5260c8
8 files changed
+225 -213

No files matched your search

+1 -2
View File
@@ -50,6 +50,5 @@ const halfMinDate = minDate / 2;
const maxDate = 8640000000000000;
const halfMaxDate = maxDate / 2;
export const intToGpxId = (i: number) => halfMaxDate - Math.round(i / 2);
export const intToTrkptId = (i: number) => Math.round(i / 2) - halfMinDate;
export const intToGpxId = intToTrkptId;