mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
use collation for case-insensitive comparisons
This commit is contained in:
@@ -8,7 +8,7 @@ const BookerSchema = new mongoose.Schema(
|
||||
zip: { type: String, required: true },
|
||||
city: { type: String, required: true },
|
||||
},
|
||||
{ timestamps: true }
|
||||
{ timestamps: true, collation: { locale: 'de', strength: 1 } }
|
||||
)
|
||||
|
||||
export default mongoose.models.Booker || mongoose.model('Booker', BookerSchema)
|
||||
|
||||
Reference in New Issue
Block a user