Преглед изворни кода

add prop decorator to timestamp

Klaudiusz Dembler пре 4 година
родитељ
комит
87debe72a8
1 измењених фајлова са 1 додато и 0 уклоњено
  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 })