From 1ce424ae4b10c912dbc0a926891f00d1ca4e3d32 Mon Sep 17 00:00:00 2001 From: jankapunkt Date: Tue, 4 Feb 2025 08:46:39 +0100 Subject: [PATCH] fix(core): use common allow/deny rules to comply with revised alow/deny package (Meteor 3.1.1+) --- package/collection2/main.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package/collection2/main.js b/package/collection2/main.js index 08f93ed..94643f2 100644 --- a/package/collection2/main.js +++ b/package/collection2/main.js @@ -675,9 +675,9 @@ function getArgumentsAndValidationContext(methodName, args, async) { if (Meteor.isFibersDisabled) { Object.assign(allow, { - insertAsync: allow.insert, - updateAsync: allow.update, - removeAsync: allow.remove + insert: allow.insert, + update: allow.update, + remove: allow.remove }); } @@ -754,8 +754,8 @@ function getArgumentsAndValidationContext(methodName, args, async) { if (Meteor.isFibersDisabled) { Object.assign(firstDeny, { - insertAsync: firstDeny.insert, - updateAsync: firstDeny.update + insert: firstDeny.insert, + update: firstDeny.update }); } @@ -829,8 +829,8 @@ function getArgumentsAndValidationContext(methodName, args, async) { if (Meteor.isFibersDisabled) { Object.assign(secondDeny, { - insertAsync: secondDeny.insert, - updateAsync: secondDeny.update + insert: secondDeny.insert, + update: secondDeny.update }); }