From 3fd3ab2d34d512b160a5e6084d7609be7b4f4452 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Dec 2017 17:53:50 +0100 Subject: Move models to typescript-sequelize --- server/controllers/services.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'server/controllers/services.ts') diff --git a/server/controllers/services.ts b/server/controllers/services.ts index 0c325678c..3ac78a5df 100644 --- a/server/controllers/services.ts +++ b/server/controllers/services.ts @@ -1,9 +1,7 @@ import * as express from 'express' - import { CONFIG, EMBED_SIZE, PREVIEWS_SIZE } from '../initializers' -import { oembedValidator } from '../middlewares' -import { asyncMiddleware } from '../middlewares/async' -import { VideoInstance } from '../models' +import { asyncMiddleware, oembedValidator } from '../middlewares' +import { VideoModel } from '../models/video/video' const servicesRouter = express.Router() @@ -21,7 +19,7 @@ export { // --------------------------------------------------------------------------- function generateOEmbed (req: express.Request, res: express.Response, next: express.NextFunction) { - const video = res.locals.video as VideoInstance + const video = res.locals.video as VideoModel const webserverUrl = CONFIG.WEBSERVER.URL const maxHeight = parseInt(req.query.maxheight, 10) const maxWidth = parseInt(req.query.maxwidth, 10) -- cgit v1.2.3