Skip to content

fix: disconnect parentnode in DB; fix ROOT scopeId compare #281

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

Merged
merged 1 commit into from
May 6, 2023

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented May 6, 2023

Fixed two bugs related to #280:

  1. when updating the parent node to ROOT in DB, we need to disconnect the previous parent pod, because Prisma treats undefined as do nothing instead of disconnect.
  2. correctly compare the ROOT scopeID to avoid duplicate moveIntoScope calls

@lihebi lihebi merged commit b97f817 into codepod-io:main May 6, 2023
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.

1 participant