summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-14 21:52:06 +0300
committereug-vs <eug-vs@keemail.me>2020-11-14 21:52:06 +0300
commit806c97c2998a3139d5fffd62d324be716d2e8628 (patch)
tree8d349359e46c40ae75744c046197d43a7f4eb928
parent516ecee72938dd6def1d76fa028b805beb862ad5 (diff)
downloadbsu-fantom-806c97c2998a3139d5fffd62d324be716d2e8628.tar.gz
feat: use participant names instead of IDs
-rw-r--r--src/handlers/index.js4
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
}
});