Jelajahi Sumber

add prop decorator to timestamp

Klaudiusz Dembler 4 tahun lalu
induk
melakukan
87debe72a8
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      src/models/VideoEvent.ts

+ 1 - 0
src/models/VideoEvent.ts

@@ -17,6 +17,7 @@ export class VideoEvent {
   @prop({ required: true, index: true })
   channelId: string
 
+  @prop({ required: true })
   timestamp: Date
 
   @prop({ required: true, index: true, enum: VideoEventType })