aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/request/request-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-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-interface.ts')
-rw-r--r--server/models/request/request-interface.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/request/request-interface.ts b/server/models/request/request-interface.ts
index 70fd734e1..483850633 100644
--- a/server/models/request/request-interface.ts
+++ b/server/models/request/request-interface.ts
@@ -1,6 +1,7 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2 2
3import { PodInstance, PodAttributes } from '../pod' 3import { PodInstance, PodAttributes } from '../pod'
4import { RequestEndpoint } from '../../../shared/models/request-scheduler.model'
4 5
5export type RequestsGrouped = { 6export type RequestsGrouped = {
6 [ podId: number ]: { 7 [ podId: number ]: {
@@ -32,7 +33,7 @@ export interface RequestClass {
32 33
33export interface RequestAttributes { 34export interface RequestAttributes {
34 request: object 35 request: object
35 endpoint: string 36 endpoint: RequestEndpoint
36} 37}
37 38
38export interface RequestInstance extends RequestClass, RequestAttributes, Sequelize.Instance<RequestAttributes> { 39export interface RequestInstance extends RequestClass, RequestAttributes, Sequelize.Instance<RequestAttributes> {