diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/handlers/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/handlers/index.js b/src/handlers/index.js index 0f0ab67..658d8d9 100644 --- a/src/handlers/index.js +++ b/src/handlers/index.js @@ -41,8 +41,8 @@ const handleJob = async job => { const { data } = job.attrs; const participants = await UserModel.find({ - _id: { - $in: data.participantIds.map(Types.ObjectId) + username: { + $in: data.participants } }); |