Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: minor refactors

Abdullah Atta0b971bda38cc
diff --git a/packages/core/api/sync/__tests__/sync.test.skip.js b/packages/core/api/sync/__tests__/sync.test.skip.js
index 33b27dc53..b10749199 100644
--- a/packages/core/api/sync/__tests__/sync.test.skip.js
+++ b/packages/core/api/sync/__tests__/sync.test.skip.js
@@ -238,7 +238,6 @@ test("issue: colors are not properly created if multiple notes are synced togeth
await delay(2000);
const purpleColor = deviceB.colors.tag("purple");
- console.log(noteIds, purpleColor.noteIds);
expect(noteIds.every((id) => purpleColor.noteIds.indexOf(id) > -1)).toBe(
true
);
diff --git a/packages/core/database/cached-collection.js b/packages/core/database/cached-collection.js
index e1364a6cc..925f0e1dd 100644
--- a/packages/core/database/cached-collection.js
+++ b/packages/core/database/cached-collection.js
@@ -48,6 +48,7 @@ export default class CachedCollection extends IndexedCollection {
// }
this.map = new MapStub.Map(data, this.type);
+ this.invalidateCache();
}
async clear() {