mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix error
This commit is contained in:
parent
951d3a7090
commit
ba3b887a33
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ export default define(meta, async (ps, me) => {
|
||||||
let user;
|
let user;
|
||||||
|
|
||||||
if (ps.userIds) {
|
if (ps.userIds) {
|
||||||
|
if (ps.userIds.length === 0) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
const users = await Users.find({
|
const users = await Users.find({
|
||||||
id: In(ps.userIds)
|
id: In(ps.userIds)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue