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
v2.12 New 'collection' option for Accounts does not permit the name 'users' for a remote collection #12610
Comments
It also seems that this happens:
Meteor.users should reflect the actual users collection while creating a local DB is not necessary. For now I could just reinitialized Meteor.users with my new DB but that doesn't sound right: export const UsersDB = new Meteor.Collection('otherUsers', { _driver })
Meteor.users = UsersDB
Meteor.users.attachSchema(User) |
Yeah, that does not sound correct. |
Hi @paulincai I think I may have a probable fix for your issue. But the problem is that I am unable to replicate the issue on my local environment. The fix is to replace a line in the "accounts_common.js"-
with this -
and then try to run the server and do the same thing. If this does not work or if there is some other problem could you guide me as to how I can replicate this issue? |
Any updates? |
I faced a problem customizing the When you designate a different name for your users collection using These issues need attention. Is anyone available to tackle them now? Otherwise we'll address them later when we have more capacity on the core team. |
server.js
A console.log() right above the following line:
meteor/packages/accounts-base/accounts_common.js
Line 46 in 1d6983c
should print my configuration options but the object is empty because the configuration was not yet applied and options are not passed. This results in the creation of a local collection 'users'.
Further down in AccountsCommon, the config(options) is being applied however, if you want to connect to a remote collection named 'users' of another Meteor instance, you can't because the other collection should not have the name 'users':
meteor/packages/accounts-base/accounts_common.js
Line 288 in 1d6983c
The text was updated successfully, but these errors were encountered: