mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-13 22:28:58 +09:00
Fix error
This commit is contained in:
parent
64bbc55336
commit
075af96338
@ -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…
Reference in New Issue
Block a user