mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
use STATUS_APPROVED constant on getPostsParameters
This commit is contained in:
parent
44da19ff9d
commit
1aef145973
1 changed files with 3 additions and 3 deletions
|
@ -2,14 +2,14 @@
|
|||
|
||||
getPostsParameters = function (terms) {
|
||||
|
||||
// console.log(terms)
|
||||
console.log(terms)
|
||||
|
||||
// note: using jquery's extend() with "deep" parameter set to true instead of shallow _.extend()
|
||||
// see: http://api.jquery.com/jQuery.extend/
|
||||
|
||||
var baseParameters = {
|
||||
find: {
|
||||
status: 2,
|
||||
status: STATUS_APPROVED,
|
||||
postedAt: {$lte: new Date()}
|
||||
},
|
||||
options: {
|
||||
|
@ -29,7 +29,7 @@ getPostsParameters = function (terms) {
|
|||
if(typeof terms.limit != 'undefined' && !!terms.limit)
|
||||
_.extend(parameters.options, {limit: parseInt(terms.limit)});
|
||||
|
||||
// console.log(parameters)
|
||||
console.log(parameters)
|
||||
|
||||
return parameters;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue