fremail / sequelize-nested-set

Library to store and manage nested set trees using Sequelize
MIT License
39 stars 10 forks source link

Cannot insert the node that has its place in the tree #7

Closed Gn0ume closed 5 years ago

Gn0ume commented 5 years ago

Hey man! Can't get how to use addChild method? I can successfully add roots but when I do

.then(model=>{
model.addChild(new Model({...})
})

I always get this error Cannot insert the node that has its place in the tree

What I do wrong?

fremail commented 5 years ago

@Gn0ume thank you for reporting the bug!

Found similar bug with these functions:

I'm working on a fix for the listed functions

fremail commented 5 years ago

@Gn0ume sequelize-nested-set@1.1.3 with the fixes was released!