mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Rollback changes to fibers implementation
This commit is contained in:
@@ -1025,7 +1025,8 @@ Accounts.createUserAsync = async (options, callback) => {
|
||||
// method calling Accounts.createUser could set?
|
||||
//
|
||||
|
||||
Accounts.createUser = (options, callback) => {
|
||||
Accounts.createUser = !Meteor._isFibersEnabled ? Accounts.createUserAsync
|
||||
: (options, callback) => {
|
||||
return Promise.await(Accounts.createUserAsync(options, callback));
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,11 @@ Npm.depends({
|
||||
});
|
||||
|
||||
Package.onUse(function (api) {
|
||||
if (process.env.DISABLE_FIBERS) {
|
||||
api.use('ddp-server-async', 'server');
|
||||
api.export('DDPServer', 'server');
|
||||
return;
|
||||
}
|
||||
api.use(['check', 'random', 'ejson', 'underscore',
|
||||
'retry', 'mongo-id', 'diff-sequence', 'ecmascript'],
|
||||
'server');
|
||||
|
||||
Reference in New Issue
Block a user