Fix MongoError: No query solutions when using findAllByEmailfix-findAllByEmail-mongoerror-no-query-solutions-for
commit110e61f426e75926e390fd1924c9fff3f3f6c315
authorEric Eastwood <contact@ericeastwood.com>
Thu, 19 Aug 2021 03:39:27 +0000 (18 22:39 -0500)
committerEric Eastwood <contact@ericeastwood.com>
Thu, 19 Aug 2021 03:39:27 +0000 (18 22:39 -0500)
tree938ff36b67c5522362af206da57888ab106b263a
parentcb0350c560cb314f8564835fabe9eb24fe6edf1b
Fix MongoError: No query solutions when using findAllByEmail

First saw an actual error around this in a community contribution, https://gitlab.com/bradcray/webapp/-/jobs/1515104046
I'm not sure why it doesn't fail in our regular pipelines.

`email` hasn't existed on our user schema forever... (going back to the start of the schema file)
modules/users/lib/user-service.js