diff --git a/website/server/middlewares/auth.js b/website/server/middlewares/auth.js index 88f137aa66..55bcf2b147 100644 --- a/website/server/middlewares/auth.js +++ b/website/server/middlewares/auth.js @@ -13,7 +13,7 @@ import { getLanguageFromUser } from '../libs/language'; const OFFICIAL_PLATFORMS = ['habitica-web', 'habitica-ios', 'habitica-android']; const COMMUNITY_MANAGER_EMAIL = nconf.get('EMAILS_COMMUNITY_MANAGER_EMAIL'); -const USER_FIELDS_ALWAYS_LOADED = ['_id', 'notifications', 'preferences', 'auth', 'flags', 'permissions']; +const USER_FIELDS_ALWAYS_LOADED = ['_id', '_v', 'notifications', 'preferences', 'auth', 'flags', 'permissions']; function getUserFields (options, req) { // A list of user fields that aren't needed for the route and are not loaded from the db.