fix: daily journals not created on desktop

pull/1220/head
Tienson Qin 2021-01-30 08:21:15 +08:00
parent 30c5187ab4
commit 6d1fd0151c
1 changed files with 1 additions and 4 deletions

View File

@ -153,10 +153,7 @@
(when (or (db/cloned? repo)
(and (config/local-db? repo)
;; config file exists
(let [path (config/get-config-path)
path (if (and (util/electron?) (config/local-db? repo))
(str (config/get-repo-dir repo) "/" path)
path)]
(let [path (config/get-config-path)]
(db/get-file path))))
(let [today-page (string/lower-case (date/today))]
(when (empty? (db/get-page-blocks-no-cache repo today-page))