-
Notifications
You must be signed in to change notification settings - Fork 627
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
calling new RefreshToken from within the model gives problems #125
Comments
PS: I was actually debugging a bug I had - when I retry a refreshToken, I get an error (expected I guess) but the error isn't handled properly..
thrown by |
Hey George, I will close this old issue because we will probably switch to Postgres on the next version of the boilerplate. We can talk about the current problems of the boilerplate and check the progress on #334 |
https://github.com/danielfsousa/express-rest-es2017-boilerplate/blob/032a005deaa68a06f476432f4d602917609a251a/src/api/models/refreshToken.model.js#L41
Hey Daniel, how's it going?
I was cleaning up my API based on your boilerplate, and after changing the export to be
module.exports = mongoose.model('RefreshToken', refreshTokenSchema);
instead ofit broke (naturally) - I was thinking of we could improve this a bit by moving the new declaration in the controller?
The text was updated successfully, but these errors were encountered: