[Server] Some performance improvements
This commit is contained in:
parent
e52965a923
commit
1f88c4d40c
14 changed files with 74 additions and 8 deletions
|
|
@ -15,6 +15,11 @@ export default async (req: express.Request, res: express.Response) => {
|
|||
// Fetch user
|
||||
const user = await User.findOne({
|
||||
username_lower: username.toLowerCase()
|
||||
}, {
|
||||
fields: {
|
||||
data: false,
|
||||
profile: false
|
||||
}
|
||||
});
|
||||
|
||||
if (user === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue