mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Fixed problem with categories.
This commit is contained in:
parent
b6f62c7816
commit
02a75ec9aa
1 changed files with 2 additions and 3 deletions
|
@ -71,9 +71,8 @@ postListSubscription = function(find, options, per_page) {
|
|||
console.log('calling postListSubscription')
|
||||
var handle = Meteor.subscribeWithPagination('paginatedPosts', find, options, per_page);
|
||||
handle.fetch = function() {
|
||||
find = _.isFunction(find) ? find() : find;
|
||||
console.log(find);
|
||||
return limitDocuments(Posts.find(find, options), handle.loaded());
|
||||
var ourFind = _.isFunction(find) ? find() : find;
|
||||
return limitDocuments(Posts.find(ourFind, options), handle.loaded());
|
||||
}
|
||||
return handle;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue