Hello everyone!
I have my app divided by 3 "main" modules, they are:
DataBaseModule - Here we have Sequelize instance
ModelsModule - Here we have the sequelize models
RepositoriesModule - Here we have the repositories do manage sequelize entities
I am trying to get "UserRepository" from RepositoriesModule and take any action like findAll but I am getting this error:
Model not initialized: Member "findAll" cannot be called. "User" needs to be added to a Sequelize instance.
There are anything wrong in my flow?