Closed john012343210 closed 4 years ago
UnhandledPromiseRejectionWarning: MongoError: E11000 duplicate key error collection: test.users index: email_1 dup key: { email: null }
saving the first user is never a problem, but saving the second seems to lead to token: Bad request. What is strange is that we never attempt to save the email of the user right?
turns out that there is an index name "email1" undeleted.
saving the first user is never a problem, but saving the second seems to lead to token: Bad request. What is strange is that we never attempt to save the email of the user right?