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

does not work across Multiple Database : useDB #22

Open
anoopsinghbayes opened this issue Jul 11, 2018 · 1 comment
Open

does not work across Multiple Database : useDB #22

anoopsinghbayes opened this issue Jul 11, 2018 · 1 comment

Comments

@anoopsinghbayes
Copy link

I was trying to make this work across DB ,so that every DB maintains its own collection IdentityCounter but found that its just creating it on the primary connection

I have added a test here if you want to have a look

https://github.com/anoopsinghbayes/mongoose-plugin-autoinc/blob/71780f3e5d0b65000f725e450b4e28210d2fbd74/src/__tests__/index-test.js#L436

(note could'nt install mongodb-memory-server hence my test use MongoDB instance )

@anoopsinghbayes anoopsinghbayes changed the title does not work with useDB does not work across Multiple Database : useDB Jul 11, 2018
@nodkz
Copy link
Owner

nodkz commented Jul 11, 2018

Please open PR with broken test. Try find time on this week to fix this problem.

Thanks.

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