File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const QuestionSchema = new mongoose.Schema(
6060
6161QuestionSchema . plugin ( mongoosePaginate ) ;
6262
63- QuestionSchema . index ( { createdAt : 1 } ) ;
63+ QuestionSchema . index ( { created_at : 1 } ) ;
6464
6565const Question = mongoose . model ( 'Question' , QuestionSchema ) ;
6666
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const SubmissionSchema = mongoose.Schema(
4040
4141SubmissionSchema . plugin ( mongoosePaginate ) ;
4242
43- SubmissionSchema . index ( { createdAt : 1 } ) ;
43+ SubmissionSchema . index ( { created_at : 1 } ) ;
4444
4545const Submission = mongoose . model ( 'Submission' , SubmissionSchema ) ;
4646
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ const UserSchema = new mongoose.Schema(
9494
9595UserSchema . plugin ( aggregatePaginate ) ;
9696
97- UserSchema . index ( { createdAt : 1 } ) ;
97+ UserSchema . index ( { created_at : 1 } ) ;
9898
9999const User = mongoose . model ( 'User' , UserSchema ) ;
100100
You can’t perform that action at this time.
0 commit comments