feat: Move language option to profile setting (#387)
This commit is contained in:
@@ -26,7 +26,7 @@ export default function (sequelize) {
|
||||
|
||||
// Return updated user without password
|
||||
const updatedUser = await User.findByPk(userId, {
|
||||
attributes: ['id', 'email', 'username', 'role', 'avatarPath'],
|
||||
attributes: ['id', 'email', 'username', 'role', 'avatarPath', 'locale'],
|
||||
});
|
||||
|
||||
res.json({ user: updatedUser });
|
||||
|
||||
Reference in New Issue
Block a user