mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Added to wrong branch.
Revert "refactor(accounts-base): use spread operator instead of .push.apply()"
This reverts commit 6adbde798f.
This commit is contained in:
@@ -904,8 +904,10 @@ export class AccountsServer extends AccountsCommon {
|
||||
// - forLoggedInUser {Array} Array of fields published to the logged-in user
|
||||
// - forOtherUsers {Array} Array of fields published to users that aren't logged in
|
||||
addAutopublishFields(opts) {
|
||||
this._autopublishFields.loggedInUser.push(...opts.forLoggedInUser);
|
||||
this._autopublishFields.otherUsers.push(...opts.forOtherUsers);
|
||||
this._autopublishFields.loggedInUser.push.apply(
|
||||
this._autopublishFields.loggedInUser, opts.forLoggedInUser);
|
||||
this._autopublishFields.otherUsers.push.apply(
|
||||
this._autopublishFields.otherUsers, opts.forOtherUsers);
|
||||
};
|
||||
|
||||
// Replaces the fields to be automatically
|
||||
|
||||
Reference in New Issue
Block a user