Fix internal error in api/pinned-users if one or more name fails to resolve
This commit is contained in:
parent
86f2e32c66
commit
a411f4e4d9
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export default define(meta, paramDef, async (ps, me) => {
|
|||
);
|
||||
|
||||
return await Users.packMany(
|
||||
users.filter((x) => x !== undefined) as User[],
|
||||
users.filter((x) => (x != null)) as User[],
|
||||
me,
|
||||
{ detail: true },
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue