IliaIdakiev/softuni-node-express

Issue in cube controller in getEdit

Opened this issue · 0 comments

In week4/workshop/controllers/cube.js

models.cubeModel.findOne({ _id: id, creatorId: user._id }).then(cube => {
......
}).next(next);

Should be catch