Skip to content

add resource not found (404) validation on update base service method#3

Open
MGurtD wants to merge 1 commit intosudoish:masterfrom
MGurtD:master
Open

add resource not found (404) validation on update base service method#3
MGurtD wants to merge 1 commit intosudoish:masterfrom
MGurtD:master

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