aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/request/request-video-event-interface.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-16 10:36:18 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-16 10:36:18 +0200
commitee9e7b61f59a427208386738057c8eff48fba599 (patch)
tree9097de886128e15f21f0b5920a2076d16a087467 /server/models/request/request-video-event-interface.ts
parent70c065d64c330196d371941d9294a55da6e3aa37 (diff)
downloadPeerTube-ee9e7b61f59a427208386738057c8eff48fba599.tar.gz
PeerTube-ee9e7b61f59a427208386738057c8eff48fba599.tar.zst
PeerTube-ee9e7b61f59a427208386738057c8eff48fba599.zip
Create types for model enums
Diffstat (limited to 'server/models/request/request-video-event-interface.ts')
-rw-r--r--server/models/request/request-video-event-interface.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/models/request/request-video-event-interface.ts b/server/models/request/request-video-event-interface.ts
index 219d8edc0..3ed03339a 100644
--- a/server/models/request/request-video-event-interface.ts
+++ b/server/models/request/request-video-event-interface.ts
@@ -3,10 +3,12 @@ import * as Sequelize from 'sequelize'
3import { VideoInstance } from '../video' 3import { VideoInstance } from '../video'
4import { PodInstance } from '../pod' 4import { PodInstance } from '../pod'
5 5
6import { RequestVideoEventType } from '../../../shared/models/request-scheduler.model'
7
6export type RequestsVideoEventGrouped = { 8export type RequestsVideoEventGrouped = {
7 [ podId: number ]: { 9 [ podId: number ]: {
8 id: number 10 id: number
9 type: string 11 type: RequestVideoEventType
10 count: number 12 count: number
11 video: VideoInstance 13 video: VideoInstance
12 pod: PodInstance 14 pod: PodInstance
@@ -35,7 +37,7 @@ export interface RequestVideoEventClass {
35} 37}
36 38
37export interface RequestVideoEventAttributes { 39export interface RequestVideoEventAttributes {
38 type: string 40 type: RequestVideoEventType
39 count: number 41 count: number
40} 42}
41 43