eliminado console.log
This commit is contained in:
parent
2b7abef98f
commit
bbd09b3d36
|
@ -12,7 +12,8 @@ module.exports = function(FakeProduction) {
|
||||||
delete filter.page;
|
delete filter.page;
|
||||||
|
|
||||||
if(filter.where && filter.where.q){
|
if(filter.where && filter.where.q){
|
||||||
var newFilter = {and: [
|
var newFilter = {
|
||||||
|
and: [
|
||||||
{
|
{
|
||||||
or: [
|
or: [
|
||||||
{agency: {regexp: filter.where.q}},
|
{agency: {regexp: filter.where.q}},
|
||||||
|
@ -36,8 +37,6 @@ module.exports = function(FakeProduction) {
|
||||||
filter.where = newFilter;
|
filter.where = newFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(JSON.stringify(filter));
|
|
||||||
|
|
||||||
FakeProduction.connectToService(ctx, "client");
|
FakeProduction.connectToService(ctx, "client");
|
||||||
this.find(filter, function(err, tickets) {
|
this.find(filter, function(err, tickets) {
|
||||||
FakeProduction.disconnectFromService("client");
|
FakeProduction.disconnectFromService("client");
|
||||||
|
|
Loading…
Reference in New Issue