Open thangnd238 opened 3 years ago
@thangnd238 I have reformatted your code to make it more readable. But it doesn't appear to be syntactical - you are calling .findAll()
with 2 arguments which (unless Sequelize has changed recently) isn't correct. Can you please check the code is correct?
This is my db
I want to set condition for children, but i receive this error: "Parent ID 2 not found in result set" because the record with id = 2 has status = 2, so can not get in result set. How can i fix it?. This is my code: