diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 13:08:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 13:08:33 +0900 |
| commit | 1f88c4d40c3e6dba6da173496e444e46323d84c5 (patch) | |
| tree | d1bc4b51f24c7e3c5fa89503470f7ea6d9628696 /src/api/private | |
| parent | Remove unused import (diff) | |
| download | sharkey-1f88c4d40c3e6dba6da173496e444e46323d84c5.tar.gz sharkey-1f88c4d40c3e6dba6da173496e444e46323d84c5.tar.bz2 sharkey-1f88c4d40c3e6dba6da173496e444e46323d84c5.zip | |
[Server] Some performance improvements
Diffstat (limited to 'src/api/private')
| -rw-r--r-- | src/api/private/signin.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/private/signin.ts b/src/api/private/signin.ts index 5af44ce940..14dd1c7058 100644 --- a/src/api/private/signin.ts +++ b/src/api/private/signin.ts @@ -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) { |