Open anurag-4345 opened 4 years ago
Cannot read property 'findOne' of undefined
More details
probably you have included the body-parser ..use that middleware in app.js file app.use(express.urlencoded({ extended: true })); include this in app.js hope it will work
Cannot read property 'findOne' of undefined