You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux pyrite 5.15.82 #1-NixOS SMP Thu Dec 8 10:28:45 UTC 2022 x86_64 GNU/Linux
Description
I'm in the process of creating a new type widget, and I want to save the settings to the notes content instead of using attributes like I am currently. However when I try request the content in various ways (looking at other code) it returns as undefined.
This is the relevant code and some commented out stuff I've used in testing:
In the uncommented parts I'm basically just getting the note complement, and I get everything except the content.
Similarly trying to use await note.getContent() gives the same. I've only managed to get the content by executing SQL queries (using a custom endpoint I made for quick testing). But I want to use the builtin features to get the content as expected. So feels like I'm missing something.
Using node v18.12.1 if that matters.
Error logs
No response
The text was updated successfully, but these errors were encountered:
await froca.getNoteComplement(note.noteId); should generally work, not sure what's wrong.
Might be perhaps because it's not recognized as text data? I think binary is never returned to frontend in this form.
You were totally correct. I didn't realize that the mime is used in that way, so since it set it as empty (copied book code) it was just giving me binary.
If we want to note these things down for the future of people who want to contribute, is there a good place for that?
Trilium Version
0.59.2
What operating system are you using?
Other Linux
What is your setup?
Server access only
Operating System Version
Linux pyrite 5.15.82 #1-NixOS SMP Thu Dec 8 10:28:45 UTC 2022 x86_64 GNU/Linux
Description
I'm in the process of creating a new type widget, and I want to save the settings to the notes content instead of using attributes like I am currently. However when I try request the content in various ways (looking at other code) it returns as
undefined
.This is the relevant code and some commented out stuff I've used in testing:
In the uncommented parts I'm basically just getting the note complement, and I get everything except the content.
Similarly trying to use
await note.getContent()
gives the same. I've only managed to get the content by executing SQL queries (using a custom endpoint I made for quick testing). But I want to use the builtin features to get the content as expected. So feels like I'm missing something.Using node v18.12.1 if that matters.
Error logs
No response
The text was updated successfully, but these errors were encountered: