Browse Source

fix: lint

Tienson Qin 1 year ago
parent
commit
b107525c7d

+ 1 - 1
deps/outliner/src/logseq/outliner/pipeline.cljs

@@ -144,7 +144,7 @@
                   (when-let [e (d/entity db [:block/uuid id])]
                     (:db/id e))))))))
 
-(defn get-journal-day-from-long
+(defn ^:api get-journal-day-from-long
   [db v]
   (when-let [date (tc/from-long v)]
     (let [day (js/parseInt

+ 1 - 0
scripts/src/logseq/tasks/dev/db_and_file_graphs.clj

@@ -106,6 +106,7 @@
                               "/page-name-sanity-lc"]))
         ;; For now use the whole code line. If this is too brittle can make this smaller
         allowed-exceptions #{"{:block/name page-title})))"
+                             "{:block/name page-title})"
                              "(when-not (db/get-page journal)"
                              "(let [value (if datetime? (tc/to-long d) (db/get-page journal))]"}
         res (apply shell {:out :string :continue true}

+ 1 - 1
src/main/frontend/components/property/value.cljs

@@ -386,7 +386,7 @@
             (page-cp {:disable-preview? true
                       :show-non-exists-page? true
                       :label (human-date-label date)}
-                     (db/get-page page-title))
+                     {:block/name page-title})
             page-title)))
       (let [date (js/Date. value)]
         [:span