diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-15 12:54:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-15 12:54:42 +0900 |
| commit | 075af9633805cb5ff77022cb8592a01364417e38 (patch) | |
| tree | 7ff1af37f3d3b8c031152e62e6952765e9d674ec /src/server/api/endpoints/users | |
| parent | Fix bug (diff) | |
| download | sharkey-075af9633805cb5ff77022cb8592a01364417e38.tar.gz sharkey-075af9633805cb5ff77022cb8592a01364417e38.tar.bz2 sharkey-075af9633805cb5ff77022cb8592a01364417e38.zip | |
Fix error
Diffstat (limited to 'src/server/api/endpoints/users')
| -rw-r--r-- | src/server/api/endpoints/users/show.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/api/endpoints/users/show.ts b/src/server/api/endpoints/users/show.ts index 2be193f89b..46dc7341e6 100644 --- a/src/server/api/endpoints/users/show.ts +++ b/src/server/api/endpoints/users/show.ts @@ -65,6 +65,10 @@ export default define(meta, async (ps, me) => { let user; if (ps.userIds) { + if (ps.userIds.length === 0) { + return []; + } + const users = await Users.find({ id: In(ps.userIds) }); |