express-microservice-boilerplate
express-microservice-boilerplate copied to clipboard
UnhandledPromiseRejectionWarning: TypeError: mongoConnection.model is not a function
(node:79684) UnhandledPromiseRejectionWarning: TypeError: mongoConnection.model is not a function
at Users.setDbModel (/Users/sds-sudip.sharma/Documents/Projects/Example/express-microservice-boilerplate-develop/build/src/models/users.js:36:43)
at new Users (/Users/sds-sudip.sharma/Documents/Projects/Example/express-microservice-boilerplate-develop/build/src/models/users.js:17:14)
at Function.getInstance (/Users/sds-sudip.sharma/Documents/Projects/Example/express-microservice-boilerplate-develop/build/src/models/users.js:21:26)
at /Users/sds-sudip.sharma/Documents/Projects/Example/express-microservice-boilerplate-develop/build/src/controllers/mongo.js:15:51
at Generator.next (--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:79684) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.