coyotte508 HF staff commited on
Commit
4dd693b
1 Parent(s): 1da93de

🗃️ Fix unique index

Browse files
Files changed (1) hide show
  1. src/lib/server/db/user.ts +1 -0
src/lib/server/db/user.ts CHANGED
@@ -11,6 +11,7 @@ export function createUserCollection(db: Db, client: MongoClient): Collection<Us
11
  email: 1
12
  },
13
  {
 
14
  collation: {
15
  locale: 'en',
16
  strength: 1
 
11
  email: 1
12
  },
13
  {
14
+ unique: true,
15
  collation: {
16
  locale: 'en',
17
  strength: 1