-
Notifications
You must be signed in to change notification settings - Fork 2
Fix/note title composer #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix/note title composer #291
Conversation
src/repository/note.repository.ts
Outdated
@@ -93,11 +92,11 @@ export default class NoteRepository { | |||
} | |||
|
|||
/** | |||
* Gets the Note tree by note id | |||
* Fetches the raw recursive note tree data from DB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve the comment please
* Creates a tree of notes | ||
* @param noteId - public note id | ||
* @returns NoteHierarchy | ||
* Fetches the raw recursive note tree data from DB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve the comment please
/** | ||
* Note content | ||
*/ | ||
content: NoteContent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why there is a 'content' instead of 'title' like in NoteHierarchy
entity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the data we get from the database with the query and then change the content to title build the heirarchy structure and then return to frontend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need this type at all? Why not to use just Note
entity like in other methods which returns a note from the database?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still actual question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note entity dose not have parentId in it.
Added note title componser on backend.
Instead of note content now it should directely send note title
fixes: #287