Add new limit operator

This commit is contained in:
John Supplee 2021-02-26 17:31:44 +02:00
parent 2930e9cadb
commit 62b0d371ee
3 changed files with 16 additions and 2 deletions

View file

@ -755,13 +755,14 @@ function findCards(sessionId, selector, projection, errors = null) {
// check(projection, Object);
const userId = Meteor.userId();
console.log('selector:', selector);
console.log('projection:', projection);
let cards;
if (!errors || !errors.hasErrors()) {
cards = Cards.find(selector, projection);
}
console.log('selector:', selector);
console.log('projection:', projection);
console.log('count:', cards.count());
const update = {
$set: {