From bbd09b3d36894d2f924e4ffcc926a8cc8e663274 Mon Sep 17 00:00:00 2001 From: Dani Herrero Date: Thu, 6 Jul 2017 14:48:05 +0200 Subject: [PATCH] eliminado console.log --- .../common/methods/fake-production/list.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/services/production/common/methods/fake-production/list.js b/services/production/common/methods/fake-production/list.js index a1f1a7212c..16f139d76d 100644 --- a/services/production/common/methods/fake-production/list.js +++ b/services/production/common/methods/fake-production/list.js @@ -12,14 +12,15 @@ module.exports = function(FakeProduction) { delete filter.page; if(filter.where && filter.where.q){ - var newFilter = {and: [ - { - or: [ - {agency: {regexp: filter.where.q}}, - {state: {regexp: filter.where.q}} - ] - } - ] + var newFilter = { + and: [ + { + or: [ + {agency: {regexp: filter.where.q}}, + {state: {regexp: filter.where.q}} + ] + } + ] }; delete filter.where.q; @@ -36,8 +37,6 @@ module.exports = function(FakeProduction) { filter.where = newFilter; } - console.log(JSON.stringify(filter)); - FakeProduction.connectToService(ctx, "client"); this.find(filter, function(err, tickets) { FakeProduction.disconnectFromService("client");