mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix): fix cache updates on org-id creation in non-existing files (#1288)
closes #1287
This commit is contained in:
@ -1451,7 +1451,9 @@ When NEW-FILE-OR-DIR is a directory, we use it to compute the new file path."
|
|||||||
(defun org-roam--id-new-advice (&rest _args)
|
(defun org-roam--id-new-advice (&rest _args)
|
||||||
"Update the database if a new Org ID is created."
|
"Update the database if a new Org ID is created."
|
||||||
(when (and org-roam-enable-headline-linking
|
(when (and org-roam-enable-headline-linking
|
||||||
(org-roam--org-roam-file-p))
|
(org-roam--org-roam-file-p)
|
||||||
|
(not (eq org-roam-db-update-method 'immediate))
|
||||||
|
(not (org-roam-capture-p)))
|
||||||
(org-roam-db-update)))
|
(org-roam-db-update)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Reference in New Issue
Block a user