Browse Source

fine tuning 5-3-1 and admin logic

msv2
Harish Krishna 10 years ago
parent
commit
b4f7366ba1
  1. 12
      controller/suggest.js

12
controller/suggest.js

@ -63,14 +63,14 @@ function setup( backend, query ){
cmd.body = query_admin( req.clean, 3 ); cmd.body = query_admin( req.clean, 3 );
query_backend(cmd, callback); query_backend(cmd, callback);
}, },
b: function(callback) { d: function(callback){
cmd.body = query_poi( req.clean ); cmd.body = query_admin( req.clean, 1 );
query_backend(cmd, callback); query_backend(cmd, callback);
}, },
c: function(callback) { c: function(callback) {
cmd.body = query_admin( req.clean ); cmd.body = query_poi( req.clean, 3 );
query_backend(cmd, callback); query_backend(cmd, callback);
}, }
} }
} else { } else {
async_query = { async_query = {
@ -83,11 +83,11 @@ function setup( backend, query ){
query_backend(cmd, callback); query_backend(cmd, callback);
}, },
c: function(callback){ c: function(callback){
cmd.body = query_admin( req.clean ); cmd.body = query_poi( req.clean, 1 );
query_backend(cmd, callback); query_backend(cmd, callback);
}, },
d: function(callback){ d: function(callback){
cmd.body = query_poi( req.clean, 1 ); cmd.body = query_admin( req.clean );
query_backend(cmd, callback); query_backend(cmd, callback);
} }
} }

Loading…
Cancel
Save