File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ export class Song {
24
24
publicId : string ;
25
25
26
26
@Prop ( { type : MongooseSchema . Types . Date , required : true , default : Date . now } )
27
- createdAt : Date ;
27
+ createdAt : Date ; // Added automatically by Mongoose: https://mongoosejs.com/docs/timestamps.html
28
28
29
29
@Prop ( { type : MongooseSchema . Types . Date , required : true , default : Date . now } )
30
- updatedAt : Date ;
30
+ updatedAt : Date ; // Added automatically by Mongoose: https://mongoosejs.com/docs/timestamps.html
31
31
32
32
@Prop ( { type : MongooseSchema . Types . ObjectId , required : true , ref : 'User' } )
33
33
uploader : Types . ObjectId ;
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ export class User {
71
71
@Prop ( { type : Boolean , required : true , default : true } )
72
72
prefersDarkTheme : boolean ;
73
73
74
- createdAt : Date ;
75
- updatedAt : Date ;
74
+ createdAt : Date ; // Added automatically by Mongoose: https://mongoosejs.com/docs/timestamps.html
75
+ updatedAt : Date ; // Added automatically by Mongoose: https://mongoosejs.com/docs/timestamps.html
76
76
}
77
77
78
78
export const UserSchema = SchemaFactory . createForClass ( User ) ;
You can’t perform that action at this time.
0 commit comments