v1.18.x
Barış Soner Uşaklı 10 years ago
parent 268981f6db
commit d09fcbaef0

@ -10,7 +10,7 @@ var async = require('async'),
module.exports = function(User) {
User.search = function(data, callback) {
var query = data.query;
var query = data.query || '';
var searchBy = data.searchBy || ['username'];
var startsWith = data.hasOwnProperty('startsWith') ? data.startsWith : true;
var page = data.page || 1;

Loading…
Cancel
Save