Removing _local/purges

This commit is contained in:
Eric van der Vlist 2023-02-13 09:59:41 +01:00
parent cbd5eb1e04
commit e1d6fea35c
1 changed files with 8 additions and 0 deletions

View File

@ -229,6 +229,14 @@ export const watchDbLegacy = async () => {
console.log({ caller: 'watchDbLegacy / ready to purge after sync ' }); console.log({ caller: 'watchDbLegacy / ready to purge after sync ' });
try {
const localPurges = await db.get('_local/purges');
localPurges._deleted = true;
await db.put(localPurges);
} catch (error) {
console.warn({ caller: 'watchDbLegacy / _local/purges', error });
}
const deletedDocs = await getDeletedDocs(); const deletedDocs = await getDeletedDocs();
if (deletedDocs.length > 0) { if (deletedDocs.length > 0) {