Mongoose Unique Index Not Working - Debug and Fix Task
Mongoose Unique Index Not Working - Debug and Fix Task: a task in Terminal-Lego-15k (Harbor dataset). You are debugging a Node.js application that uses Mongoose to interact with MongoDB. The application has a User schema where the email field should be unique, but the unique constraint is not…
The task
You are debugging a Node.js application that uses Mongoose to interact with MongoDB. The application has a User schema where the `email` field should be unique, but the unique constraint is not being enforced properly - duplicate emails can be saved to the database.
Part of PrimeIntellect/Terminal-Lego-15k.