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

Autoincrement models/note.js #9

Open
jnschilling opened this issue May 2, 2023 · 3 comments
Open

Autoincrement models/note.js #9

jnschilling opened this issue May 2, 2023 · 3 comments

Comments

@jnschilling
Copy link

End of the controller lesson 4, I noticed that a POST to create a new note to a valid user:
It is leading to an unending request into postman.
I commented the autoincrement plugin, the issue is not there any more :
// noteSchema.plugin(AutoIncrement, {
// inc_field: 'ticket',
// id: 'ticketNums',
// start_seq: 500
// })
is this plugin still supported ?

@eshaparenko
Copy link

Hi. Also faced this issue.
There is opened bug ramiel/mongoose-sequence#133

Checked with previous version of monggose ("mongoose": "^6.11.0",). Issue is not reproduced.

@RobertBeit
Copy link

yes like eshaparenko said the best workaround is to just install the previous version of mongoose using npm install [email protected]

@Pubudu-Perera
Copy link

had the same issue. Problem is the mongoose version. stick into version 6.5.0

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

4 participants