Removing _local/purges
This commit is contained in:
parent
cbd5eb1e04
commit
e1d6fea35c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue