TriliumNext/Trilium
The issue has been closed
(Bug report) You're passing an async function to api.runOnBackend() which will likely not work as you intended. Either make the function synchronous (by removing 'async' keyword), or use api.runAsyncOnBackendWithManualTransactionHandling( #4659
dcooper94 posted onGitHub