Closed Joackk closed 11 months ago
Oh, I confirmed the problem. One of my plugins uses this function
Do you know which plugin does this? You may want to inform the creator that they are using runOnBackend
incorrectly.
Do you know which plugin does this? You may want to inform the creator that they are using
runOnBackend
incorrectly.
Looks like they have already fixed it https://github.com/SiriusXT/trilium-back-to-history/commit/a6a1be744089ad1f5e77ef8b46cfa12f96d1c28d
Looks like they have already fixed it SiriusXT/trilium-back-to-history@a6a1be7
Yes, the author and I seem to be in the same communication group, and in the morning he also encountered this problem
Trilium Version
0.62
What operating system are you using?
Windows
What is your setup?
Local (no sync)
Operating System Version
wind10
Description
It was nice to see the new beta release, but when I opened the notes while using it he kept prompting me with an error message I did not open the server at this time, is it because I did not open the server? Did he make any difference?
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()
Error logs
No response