Hi all,
after migration of most of my server methods to async I’m getting quite a lot warnings (using WARN_WHEN_USING_OLD_API=true
) from the accounts-base
.
E.g. coming from resuming a session:
Calling method users.findOne from old API on server.
This method will be removed, from the server, in version 3.
Trace is below:
[object Object]
at warnUsingOldApi (packages/mongo/collection.js:24:12)
at Collection.findOne (packages/mongo/collection.js:452:5)
at MethodInvocation.defaultResumeLoginHandler (packages/accounts-base/accounts_server.js:1555:29)
at MethodInvocation.<anonymous> (packages/accounts-base/accounts_server.js:1539:38)
at MethodInvocation.<anonymous> (packages/meteor.js:365:18)
at packages/accounts-base/accounts_server.js:589:31
at /Users/christianwahle/.meteor/packages/promise/.0.12.2.7eeca.2rkxk7++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
Also there are several warnings coming at server startup, since obviously index creation of accounts-base
is not using createIndexAsync
yet. Although there seems to be a PR on this already.
Is there anything planned here? Couldn’t find anything on the roadmap.