From ee9e7b61f59a427208386738057c8eff48fba599 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Jun 2017 10:36:18 +0200 Subject: Create types for model enums --- server/controllers/api/requests.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/controllers/api') diff --git a/server/controllers/api/requests.ts b/server/controllers/api/requests.ts index d3f0d958c..5718b59b7 100644 --- a/server/controllers/api/requests.ts +++ b/server/controllers/api/requests.ts @@ -8,6 +8,7 @@ import { getRequestVideoEventScheduler } from '../../lib' import { authenticate, ensureIsAdmin } from '../../middlewares' +import { RequestSchedulerAttributes } from '../../../shared' const requestsRouter = express.Router() @@ -44,7 +45,7 @@ function buildRequestSchedulerFunction (requestScheduler: AbstractRequestSchedul requestScheduler.remainingRequestsCount(function (err, count) { if (err) return callback(err) - const result = { + const result: RequestSchedulerAttributes = { totalRequests: count, requestsLimitPods: requestScheduler.limitPods, requestsLimitPerPod: requestScheduler.limitPerPod, -- cgit v1.2.3