Skip to content

Conversation

@MGurtD
Copy link

@MGurtD MGurtD commented Jan 19, 2021

Hi!

I edited a little the base Service.js adding the two following changes:

  1. Change model.count() to .countDocuments() to remove the MongoDB warning (deprecation method)
  2. Add resource not found validation on the update method.

Thank you for your code ;)

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.

1 participant