Skip to content

Conversation

@alexflorisca
Copy link

  • Response in express of the form "res.send(status, message)" has been deprecated. Updated responses to use the updated format of "res.status(xxx).json(object)" or "res.status(xxx).end()"
  • Fix: If the :id attribute in the API does not evaluate to a valid mongoose ObjectID, it produces a Cast error.
  • Removed some unnecessary dependency injections where they were not being used.

- Response in express of the form "res.send(status, message)" has been deprecated. Updated responses to use the updated format of "res.status(xxx).json(object)" or "res.status(xxx).end()"
- Fix: If the :id attribute in the API does not evaluate to a valid mongoose ObjectID, it produces a Cast error.
- Removed some unnecessary dependency injections where they were not being used.
@JaKXz
Copy link
Collaborator

JaKXz commented Nov 27, 2014

Thanks for the PR @alexflorisca, but, it seems we have a slightly conflicting contribution here: #704

Perhaps these PRs should be merged, but then the separate changes be brought in different commits?

@alexflorisca
Copy link
Author

No probs. Looks like I screwed something up as the test build failed so feel free to merge the other one in and leave this one. I will try and add those in manually later.

@DaftMonk DaftMonk closed this Dec 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants