mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 19:33:08 +02:00
Fix error
This commit is contained in:
parent
64bbc55336
commit
075af96338
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue