fix: close the existing watcher when adding new graph

Also, don't create today's journal file during parsing
This commit is contained in:
Tienson Qin
2021-11-25 13:30:49 +08:00
parent aca4109862
commit 7491857460
8 changed files with 15 additions and 10 deletions

View File

@@ -45,7 +45,7 @@
(and (= "change" type)
(not (db/file-exists? repo path)))
(js/console.warn "Can't get file in the db: " path)
(js/console.error "Can't get file in the db: " path)
(and (= "change" type)
(not= (string/trim content) (string/trim db-content))