1
0
Эх сурвалжийг харах

fix: error if user uses an outdated frontend

that isn't compatible with the db graph's current version
Fixes
https://test.logseq.com/#/page/6837281e-46c4-415c-a8d3-191ceeaff97a
Gabriel Horner 6 сар өмнө
parent
commit
ba168f0770

+ 2 - 2
src/main/frontend/worker/db/migrate.cljs

@@ -7,6 +7,7 @@
             [datascript.core :as d]
             [datascript.impl.entity :as de]
             [frontend.worker.search :as search]
+            [frontend.worker.util :as worker-util]
             [logseq.common.config :as common-config]
             [logseq.common.util :as common-util]
             [logseq.common.util.date-time :as date-time-util]
@@ -1154,8 +1155,7 @@
         nil
 
         (neg? compare-result) ; outdated client, db version could be synced from server
-        ;; FIXME: notify users to upgrade to the latest version asap
-        nil
+        (worker-util/post-message :notification ["Your app is using an outdated version that is incompatible with your current graph. Please update your app before editing this graph." :error false])
 
         (pos? compare-result)
         (try