From 237528af89668cea7014e939db03fa275d5fccb8 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Mon, 2 Oct 2023 14:18:18 -0300 Subject: [PATCH] chore: removed unsed code in collection --- packages/mongo/collection.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/mongo/collection.js b/packages/mongo/collection.js index 9f6757872c..6d2199965c 100644 --- a/packages/mongo/collection.js +++ b/packages/mongo/collection.js @@ -1258,16 +1258,3 @@ function popCallbackFromArgs(args) { } } - -// this methods should not be available in the server -if (Meteor.isServer) { - for (const method of ASYNC_COLLECTION_METHODS) { - Mongo.Collection.prototype[method] = function () { - throw new Error( - `${method} is not avaible on the server. Please use ${getAsyncMethodName( - method - )}() instead.` - ); - }; - } -}