(fix): pass file name to extract-headlines. (#1153)

Another location where filename needs to be passed down as per #1150.
This commit is contained in:
Natnael Kahssay
2020-09-29 20:57:07 -07:00
committed by GitHub
parent 3ec2ed8874
commit 19c5e9b0f3

View File

@ -447,7 +447,7 @@ connections, nil is returned."
(org-roam-db-query [:delete :from headlines
:where (= file $s1)]
file)
(when-let ((headlines (org-roam--extract-headlines)))
(when-let ((headlines (org-roam--extract-headlines file)))
(org-roam-db--insert-headlines headlines))))
(defun org-roam-db--update-file (&optional file-path)