We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 563f57d commit 2a9b22fCopy full SHA for 2a9b22f
server/models/project.js
@@ -76,5 +76,7 @@ projectSchema.methods.isSlugUnique = async function isSlugUnique() {
76
};
77
78
79
+projectSchema.index({ user: 1 }, { collation: { locale: 'en', strength: 2 } });
80
+
81
export default mongoose.models.Project ||
82
mongoose.model('Project', projectSchema);
0 commit comments