Browse Source

chore: add some comments

rcmerci 1 year ago
parent
commit
be41c8bae7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      deps/common/src/logseq/common/uuid.cljs

+ 3 - 0
deps/common/src/logseq/common/uuid.cljs

@@ -3,6 +3,9 @@
   (:require [datascript.core :as d]))
 
 (defn- gen-journal-page-uuid
+  "00000001-2024-0620-0000-000000000000
+first 8 chars as type, currently only '00000001' for journal-day-page.
+the remaining chars for data of this type"
   [journal-day]
   {:pre [(int? journal-day)]}
   (let [journal-day-str  (str journal-day)