From 806c97c2998a3139d5fffd62d324be716d2e8628 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 14 Nov 2020 21:52:06 +0300 Subject: feat: use participant names instead of IDs --- src/handlers/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 } }); -- cgit v1.2.3