mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
fix: resolve between property
This commit is contained in:
@@ -207,17 +207,19 @@
|
||||
;; ===============
|
||||
(defn- resolve-timestamp-property
|
||||
[e]
|
||||
(let [k (-> (second e)
|
||||
(name)
|
||||
(string/lower-case)
|
||||
(string/replace "_" "-")
|
||||
keyword)]
|
||||
(case k
|
||||
:created-at
|
||||
:block/created-at
|
||||
:updated-at
|
||||
:block/updated-at
|
||||
k)))
|
||||
(let [k' (second e)]
|
||||
(when (or (keyword? k') (symbol? k') (string? k'))
|
||||
(let [k (-> k'
|
||||
(name)
|
||||
(string/lower-case)
|
||||
(string/replace "_" "-")
|
||||
keyword)]
|
||||
(case k
|
||||
:created-at
|
||||
:block/created-at
|
||||
:updated-at
|
||||
:block/updated-at
|
||||
k)))))
|
||||
|
||||
(defn get-timestamp-property
|
||||
[e]
|
||||
|
||||
Reference in New Issue
Block a user