Update user account fetching for profile view
This commit is contained in:
@ -323,7 +323,7 @@ module.exports = function(app) {
|
|||||||
|
|
||||||
function returnUser (req, res, next) {
|
function returnUser (req, res, next) {
|
||||||
User.find(
|
User.find(
|
||||||
{ 'profile.username': req.params.username.toLowerCase() },
|
{where: { 'username': req.params.username.toLowerCase() }},
|
||||||
function(err, user) {
|
function(err, user) {
|
||||||
if (err) {
|
if (err) {
|
||||||
debug('Username err: ', err);
|
debug('Username err: ', err);
|
||||||
|
Reference in New Issue
Block a user