dejemos el filtro, pero que sea algo especifico. Dejame revisarlo para que
sea vea mejor


On Thu, Jan 23, 2014 at 11:36 PM, arturokunder <notifications@github.com>wrote:

> In routes/api/campaign.js:
>
> > @@ -5,12 +5,22 @@ exports.get = function (req, res) {
> >    var param = (JSON.stringify(req.query) === JSON.stringify({}) ? req.body : req.query);
> >    var campaignMongoose;
> >    if (param.campaign && !req.user.isSuperAdmin) {
> > -    campaignMongoose = model.Campaign.find({_id: param.campaign, company: req.user.company._id});
> > -  } else if (param.campaign && req.user.isSuperAdmin) {
> > +    campaignMongoose = model.Campaign.find({
> > +      _id: param.campaign,
> > +      company: req.user.company._id,
> > +      'status.isDelete' : false
>
> Jaja te la simplificaba a ti! Que hacemos? Lo dejamos o los filtro yo?
> Arturo Tagle
> … <#143c21ab1ec4a521_>
> On 23-01-2014, at 23:34, "Pedro" <notifications@github.com> wrote: In
> routes/api/campaign.js: > @@ -5,12 +5,22 @@ exports.get = function (req,
> res) { > var param = (JSON.stringify(req.query) === JSON.stringify({}) ?
> req.body : req.query); > var campaignMongoose; > if (param.campaign &&
> !req.user.isSuperAdmin) { > - campaignMongoose = model.Campaign.find({_id:
> param.campaign, company: req.user.company._id}); > - } else if
> (param.campaign && req.user.isSuperAdmin) { > + campaignMongoose =
> model.Campaign.find({ > + _id: param.campaign, > + company:
> req.user.company._id, > + 'status.isDelete' : false es que eran tan pocos,
> que daba lo mismo y simplificaba la programación … — Reply to this email
> directly or view it on GitHub.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pcortez/kd-twitter/pull/212/files#r9138843>
> .
>