Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

toObject() hook should check for presence of .toObject() #44

Closed
marshallswain opened this issue Jan 25, 2016 · 1 comment
Closed

toObject() hook should check for presence of .toObject() #44

marshallswain opened this issue Jan 25, 2016 · 1 comment

Comments

@marshallswain
Copy link
Member

If it's not a mongoose model, just leave it alone. Don't try to run toObject() when it's not there.

@ekryski
Copy link
Member

ekryski commented Feb 9, 2016

I'm fixing this right now, it goes hand in hand with #51.

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

No branches or pull requests

2 participants