]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/request/request-video-event-interface.ts
Create types for model enums
[github/Chocobozzz/PeerTube.git] / server / models / request / request-video-event-interface.ts
index 219d8edc0981a2c5cba2ec2924a815348d28758e..3ed03339a4ff192997e40ba076ba021831c05e38 100644 (file)
@@ -3,10 +3,12 @@ import * as Sequelize from 'sequelize'
 import { VideoInstance } from '../video'
 import { PodInstance } from '../pod'
 
+import { RequestVideoEventType } from '../../../shared/models/request-scheduler.model'
+
 export type RequestsVideoEventGrouped = {
   [ podId: number ]: {
     id: number
-    type: string
+    type: RequestVideoEventType
     count: number
     video: VideoInstance
     pod: PodInstance
@@ -35,7 +37,7 @@ export interface RequestVideoEventClass {
 }
 
 export interface RequestVideoEventAttributes {
-  type: string
+  type: RequestVideoEventType
   count: number
 }