overleaf/services/web/app/src/Features/User/UserInfoManager.js
Alexandre Bourdin 997bffc9b1 Merge pull request #7166 from overleaf/ab-decaf-user-info-controller
[web] Decaf cleanup UserInfoController

GitOrigin-RevId: c1bc531ed2923f05652090d792b7f1e7b4c1275c
2022-04-07 08:04:00 +00:00

18 lines
380 B
JavaScript

const UserGetter = require('./UserGetter')
const { callbackify } = require('../../util/promises')
async function getPersonalInfo(userId) {
return UserGetter.promises.getUser(userId, {
_id: true,
first_name: true,
last_name: true,
email: true,
})
}
module.exports = {
getPersonalInfo: callbackify(getPersonalInfo),
promises: {
getPersonalInfo,
},
}