andrechristikan / ack-nestjs-boilerplate

NestJs v10.x Boilerplate. Repository Design Pattern. MongoDB (Mongoose). Containerization.
MIT License
536 stars 182 forks source link

Unable to register users when country is provided #524

Closed horizon-dev-group closed 1 month ago

horizon-dev-group commented 2 months ago

image

image

The code the checks if countries exist or not is the above and it checks if a country is active by checking isActive but there is no property isActive in Country entity making it impossible to register due to the error: "The requested country was not found."

To fix we either have to add isActive or use only findOneById() instead of using findOneActiveById() while registering users.

andrechristikan commented 1 month ago

Simply, i remove management country for this project so all country always be active.