diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 10:36:18 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 10:36:18 +0200 |
commit | ee9e7b61f59a427208386738057c8eff48fba599 (patch) | |
tree | 9097de886128e15f21f0b5920a2076d16a087467 /server/models/request/request-interface.ts | |
parent | 70c065d64c330196d371941d9294a55da6e3aa37 (diff) | |
download | PeerTube-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.ts | 3 |
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 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | 2 | ||
3 | import { PodInstance, PodAttributes } from '../pod' | 3 | import { PodInstance, PodAttributes } from '../pod' |
4 | import { RequestEndpoint } from '../../../shared/models/request-scheduler.model' | ||
4 | 5 | ||
5 | export type RequestsGrouped = { | 6 | export type RequestsGrouped = { |
6 | [ podId: number ]: { | 7 | [ podId: number ]: { |
@@ -32,7 +33,7 @@ export interface RequestClass { | |||
32 | 33 | ||
33 | export interface RequestAttributes { | 34 | export interface RequestAttributes { |
34 | request: object | 35 | request: object |
35 | endpoint: string | 36 | endpoint: RequestEndpoint |
36 | } | 37 | } |
37 | 38 | ||
38 | export interface RequestInstance extends RequestClass, RequestAttributes, Sequelize.Instance<RequestAttributes> { | 39 | export interface RequestInstance extends RequestClass, RequestAttributes, Sequelize.Instance<RequestAttributes> { |