feat: expose lang in getCurrentUserData #3488

Open
ldragan wants to merge 3 commits from ldragan/salix:taro/migrate-fetchUser into dev
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ module.exports = function(Self) {
Self.getCurrentUserData = async function(ctx) {
let userId = ctx.req.accessToken.userId;
return await Self.findById(userId, {
fields: ['id', 'name', 'nickname']
fields: ['id', 'name', 'nickname', 'lang']
});
};