Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change the following mongoose line according to the new standard #196

Open
hybridx opened this issue May 16, 2023 · 2 comments
Open

Change the following mongoose line according to the new standard #196

hybridx opened this issue May 16, 2023 · 2 comments

Comments

@hybridx
Copy link

hybridx commented May 16, 2023

this.r = await this.clone().findOne()
@marga0
Copy link

marga0 commented May 29, 2023

Can I contribute on this?

@Ravindra-uk01
Copy link

In errorController.js , while doing shallow copy of err object it might happen that it does not revert back name and message field so you can add these lines also.

let error = {...err};
error.name = err.name;
error.message = err.message;

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants