Skip to content

Commit e6bab37

Browse files
committedMay 4, 2022
add timestamp generation
1 parent b2c6c20 commit e6bab37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/beers/beers.schema.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { Document } from 'mongoose';
33

44
export type BeersDocument = Beers & Document;
55

6-
@Schema()
6+
@Schema({
7+
timestamps: true,
8+
})
79
export class Beers {
810
@Prop({ type: String, required: true })
911
name: string;

0 commit comments

Comments
 (0)
Please sign in to comment.