Updating GPX import to use parent's shared.

This commit is contained in:
vdv committed 2023-02-13 11:23:17 +01:00
1 parent e445a7e1af
commit df42a684c3
2 files changed
+27 -85

No files matched your search

+7 -2
View File
@@ -234,7 +234,7 @@ export const watchDbLegacy = async () => {
localPurges._deleted = true;
await db.put(localPurges);
} catch (error) {
console.warn({ caller: 'watchDbLegacy / _local/purges', error });
// console.warn({ caller: 'watchDbLegacy / _local/purges', error });
}
const deletedDocs = await getDeletedDocs();
@@ -274,7 +274,12 @@ export const watchDbLegacy = async () => {
}
}
}
if (i !== deletedDocs.length) {
console.log({
caller: 'watchDbLegacy / purge',
nbDeletedDocs: i,
nbDocsToDelete: deletedDocs.length,
});
if (i === deletedDocs.length) {
await sleep(60000);
}
}