mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
997bffc9b1
[web] Decaf cleanup UserInfoController GitOrigin-RevId: c1bc531ed2923f05652090d792b7f1e7b4c1275c
18 lines
380 B
JavaScript
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,
|
|
},
|
|
}
|