From 031a656f2bc6cdae6deab6cab81ed75bf345b6d6 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 6 Mar 2026 13:58:44 -0600 Subject: [PATCH] Added to wrong branch. Revert "refactor(accounts-base): use spread operator instead of .push.apply()" This reverts commit 6adbde798fc3af7b3a9f277e7e46131301243752. --- packages/accounts-base/accounts_server.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/accounts-base/accounts_server.js b/packages/accounts-base/accounts_server.js index 5d4e05a9b6..e8a884c87b 100644 --- a/packages/accounts-base/accounts_server.js +++ b/packages/accounts-base/accounts_server.js @@ -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