MasterOfTheBus / Crescendo

A website to track piano progress
0 stars 0 forks source link

deleting user results in an error? #11

Open MasterOfTheBus opened 7 years ago

MasterOfTheBus commented 7 years ago

was able to delete the user, but also resulted in an error? I might have done something wrong, though.

not high priority

TypeError: Cannot call method 'remove' of null at exports.delete (/home/sidney/workspace/Crescendo/app/controllers/users.server.controller.js:135:14) at Layer.handle [as handle_request] (/home/sidney/workspace/Crescendo/node_modules/express/lib/router/layer.js:95:5) at next (/home/sidney/workspace/Crescendo/node_modules/express/lib/router/route.js:131:13) at next (/home/sidney/workspace/Crescendo/node_modules/express/lib/router/route.js:125:14) at next (/home/sidney/workspace/Crescendo/node_modules/express/lib/router/route.js:125:14) at Route.dispatch (/home/sidney/workspace/Crescendo/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/home/sidney/workspace/Crescendo/node_modules/express/lib/router/layer.js:95:5) at /home/sidney/workspace/Crescendo/node_modules/express/lib/router/index.js:277:22 at param (/home/sidney/workspace/Crescendo/node_modules/express/lib/router/index.js:349:14) at paramCallback (/home/sidney/workspace/Crescendo/node_modules/express/lib/router/index.js:401:21) at /home/sidney/workspace/Crescendo/app/controllers/users.server.controller.js:125:13 at Query. (/home/sidney/workspace/Crescendo/node_modules/mongoose/lib/model.js:3420:16) at /home/sidney/workspace/Crescendo/node_modules/mongoose/node_modules/kareem/index.js:273:21 at /home/sidney/workspace/Crescendo/node_modules/mongoose/node_modules/kareem/index.js:127:16 at process._tickCallback (node.js:415:13)