fix: journal templates not working when re-index

related to #5190
This commit is contained in:
Tienson Qin
2022-05-11 12:53:04 +08:00
parent 77a4facbc7
commit 43e8f07f40
3 changed files with 1 additions and 18 deletions

View File

@@ -739,8 +739,6 @@
file-content (when file-exists?
(fs/read-file repo-dir file-path))]
(when (and (db/page-empty? repo today-page)
(not (model/journal-day-exists? repo
(date/journal-title->int (date/today))))
(or (not file-exists?)
(and file-exists? (string/blank? file-content))))
(create! title {:redirect? false