overleaf/services/web/app/src/Features/User/UserInfoManager.js

19 lines
380 B
JavaScript
Raw Normal View History

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,
},
}