diff options
Diffstat (limited to 'server/models/user/user.ts')
-rw-r--r-- | server/models/user/user.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts index e1b933988..d481fa13c 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -198,7 +198,7 @@ loadById = function (id: number) { | |||
198 | loadByUsername = function (username: string) { | 198 | loadByUsername = function (username: string) { |
199 | const query = { | 199 | const query = { |
200 | where: { | 200 | where: { |
201 | username: username | 201 | username |
202 | } | 202 | } |
203 | } | 203 | } |
204 | 204 | ||
@@ -212,5 +212,6 @@ loadByUsernameOrEmail = function (username: string, email: string) { | |||
212 | } | 212 | } |
213 | } | 213 | } |
214 | 214 | ||
215 | return User.findOne(query) | 215 | // FIXME: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18387 |
216 | return (User as any).findOne(query) | ||
216 | } | 217 | } |