diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-20 01:15:14 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-20 01:15:14 +0900 |
| commit | 202cb38c40cd07137290377fc9274d67c289efba (patch) | |
| tree | ed4f18165a56ff7132de75a38f0d8b1a4a5d6511 /src/server/api/endpoints | |
| parent | typo (diff) | |
| download | sharkey-202cb38c40cd07137290377fc9274d67c289efba.tar.gz sharkey-202cb38c40cd07137290377fc9274d67c289efba.tar.bz2 sharkey-202cb38c40cd07137290377fc9274d67c289efba.zip | |
lint
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/users/search-by-username-and-host.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/api/endpoints/users/search-by-username-and-host.ts b/src/server/api/endpoints/users/search-by-username-and-host.ts index f03a55449d..1ec5e1a743 100644 --- a/src/server/api/endpoints/users/search-by-username-and-host.ts +++ b/src/server/api/endpoints/users/search-by-username-and-host.ts @@ -91,14 +91,14 @@ export default define(meta, async (ps, me) => { .andWhere('user.isSuspended = FALSE') .andWhere('user.usernameLower LIKE :username', { username: ps.username.toLowerCase() + '%' }) .andWhere('user.updatedAt IS NOT NULL'); - + otherQuery.setParameters(followingQuery.getParameters()); - + const otherUsers = await otherQuery .orderBy('user.updatedAt', 'DESC') .take(ps.limit! - users.length) .getMany(); - + users = users.concat(otherUsers); } } else { |