Open govindrai opened 5 years ago
Right now, even if you go to someone else stats, you get your own. That's because the res.locals.user is set to the current logged in user. Instead don't use res.locals.user, but instead, look up the user by that id.
Right now, even if you go to someone else stats, you get your own. That's because the res.locals.user is set to the current logged in user. Instead don't use res.locals.user, but instead, look up the user by that id.