Save note when new one was inserted

When I am in an org-roam note and insert a new note via , r i (org-roam-insert) after , c (org-capture-finalize) point is back in the former note and the buffer is modified. What is the preferred solution to automatically save that buffer? Is it (advice-add 'org-roam-insert :after #'org-save-all-org-buffers)? I tried it, but it does not work for me.

I think this would be better

(advice-add #'org-roam-insert :after #'save-buffer)
;;          ^ (nit-pick, because it's a function)

No need to save all your Org-mode buffers: since org-roam-insert lands on the file you were currently editing, I think this will save the relevant buffer.

I think it’d be a better option to add hooks à la org-capture for people to run their own functions after insertions. Could you file an feature-request on GitHub?

I think this would be better

Yes, it is and it works.

Could you file an feature-request on GitHub?

Will do.