ramiel / mongoose-sequence

Sequence and autoincrement handling for mongoose
GNU General Public License v2.0
284 stars 56 forks source link

Passing mongoose module instead of passing mongoose connection #139

Open aliffaizar opened 9 months ago

aliffaizar commented 9 months ago

Previously, the code expected a 'mongoose connection' while internally using the mongoose module to create the schema. This caused issues with other plugins. This commit addresses the issue #138 by refactoring the code to pass the mongoose module instead of the mongoose connection. By doing so, it ensures compatibility with other plugins. Fixes isseu #138