Skip to content
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

fix: Return block tree absolute note index on GetNotesById #317

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

igamigo
Copy link
Collaborator

@igamigo igamigo commented Apr 12, 2024

Maybe we should refactor the code to not save the batch_id until it's necessary for more than building the note tree on block construction, and use BlockNoteTree::note_index() directly to calculate the position when saving to the DB.

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@bobbinth bobbinth merged commit c29eb5b into next Apr 12, 2024
5 checks passed
@bobbinth bobbinth deleted the igamigo-absolute-note-index branch April 12, 2024 04:14
bobbinth pushed a commit that referenced this pull request Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants