Fix error

This commit is contained in:
syuilo 2019-04-15 12:54:42 +09:00
parent 951d3a7090
commit ba3b887a33

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