adamjkb / bark

Materialized path extension for Prisma
https://prisma-extension-bark.gitbook.io
MIT License
33 stars 5 forks source link

`fixTree` method #26

Open adamjkb opened 1 year ago

adamjkb commented 1 year ago

Solves problems that can appear when transactions are not used and a piece of code breaks, leaving the tree in an inconsistent state. https://django-treebeard.readthedocs.io/en/latest/api.html#treebeard.models.Node.fix_tree

Not necessary for a basic implementation but it is certainly handy to have. Unfortunately, it cannot fix every issues but in return it's labour-intensive to implement.