Skip to content

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

feat: impl db.lastSynced

thecodrr2f83971c23c0
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index 5c9886945..56b9fd6bb 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -135,6 +135,10 @@ class Database {
};
}
+ async lastSynced() {
+ return this.context.read("lastSynced");
+ }
+
_onDBWrite(item) {
if (item.remote) {
return;