Fix error

This commit is contained in:
syuilo 2019-04-15 12:54:42 +09:00
parent 64bbc55336
commit 075af96338
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -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)
});