diff options
| author | eug-vs <eug-vs@keemail.me> | 2020-11-14 21:52:06 +0300 | 
|---|---|---|
| committer | eug-vs <eug-vs@keemail.me> | 2020-11-14 21:52:06 +0300 | 
| commit | 806c97c2998a3139d5fffd62d324be716d2e8628 (patch) | |
| tree | 8d349359e46c40ae75744c046197d43a7f4eb928 /src/handlers | |
| parent | 516ecee72938dd6def1d76fa028b805beb862ad5 (diff) | |
| download | bsu-fantom-806c97c2998a3139d5fffd62d324be716d2e8628.tar.gz | |
feat: use participant names instead of IDs
Diffstat (limited to 'src/handlers')
| -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      }    }); | 
