Skip to content

Commit 74314b2

Browse files
committed
remove duplicate index
1 parent b7f95e0 commit 74314b2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/database/model/User.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ const schema = new Schema<User>(
7474
);
7575

7676
schema.index({ _id: 1, status: 1 });
77-
schema.index({ email: 1 });
7877
schema.index({ status: 1 });
7978

8079
export const UserModel = model<User>(DOCUMENT_NAME, schema, COLLECTION_NAME);

0 commit comments

Comments
 (0)