mongoose-sequence
mongoose-sequence copied to clipboard
No Longer Auto-Incrementing
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?
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.
Hello @fromage9747, can you please create a reproduction repo maybe?