Fixes and updates.
This commit is contained in:
@@ -2,6 +2,7 @@ import { Meteor } from 'meteor/meteor';
|
||||
import { Mongo } from 'meteor/mongo';
|
||||
import { check } from 'meteor/check';
|
||||
import {SimpleSchema} from 'meteor/aldeed:simple-schema';
|
||||
import Batches from "./Batch";
|
||||
|
||||
/**
|
||||
* Notes:
|
||||
@@ -131,6 +132,10 @@ if(Meteor.isServer) {
|
||||
if(!_.isNumber(skipCount) || skipCount < 0) skipCount = 0;
|
||||
|
||||
dbQuery = dbQuery.length > 0 ? {$and: dbQuery} : {};
|
||||
|
||||
//console.log("dbQuery=" + JSON.stringify(dbQuery));
|
||||
//console.log("Result Count: " + Batches.find(query).count());
|
||||
|
||||
return Meteor.collections.Sales.find(dbQuery, {limit: limit, sort, skip: skipCount});
|
||||
});
|
||||
Meteor.publish('duplicateSales', function(query, includeIgnoredDuplicates) {
|
||||
|
||||
Reference in New Issue
Block a user