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

No Longer Auto-Incrementing #116

Open
fromage9747 opened this issue Jan 1, 2022 · 2 comments
Open

No Longer Auto-Incrementing #116

fromage9747 opened this issue Jan 1, 2022 · 2 comments

Comments

@fromage9747
Copy link

I have used this library for the better half of last year and it worked like a charm and suddenly on the 1/1/2022 it decides to stop auto-incrementing.

I have spent the entire day debugging my code to try and find a fault in it but everything that I have done has only proven to me that it's not my code.

I even blew away the counters collection, set a new name for the default collection which does get created but it just doesn't create the sequence document in the counter collection nor does it increment my field.

I have checked your code for the repo and can't find any logging anywhere that I can look into.

Is there anything that I can check to see why it has stopped working for me?

@fromage9747
Copy link
Author

I have run a full debug on MongoDB and I am seeing what I would expect to see.

The log of when my code creates the new document and then a few milliseconds later it gets inserted again, which I would believe to be the code being executed by mongoose-sequence once my document has been created in order to update the specified auto-increment field.

However, it does not. there is no new addition of the specified field to increment I am at such a loss.

@ramiel
Copy link
Owner

ramiel commented Jan 7, 2022

Hello @fromage9747, can you please create a reproduction repo maybe?

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