From 53abc4c272be9ecc951274458d054dbaf86e594d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 16:31:24 +0100 Subject: Upgrade server packages --- server/controllers/api/videos/rate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/api') diff --git a/server/controllers/api/videos/rate.ts b/server/controllers/api/videos/rate.ts index 354c3d8f9..727984506 100644 --- a/server/controllers/api/videos/rate.ts +++ b/server/controllers/api/videos/rate.ts @@ -19,7 +19,7 @@ import { videoRateValidator, asyncMiddleware } from '../../../middlewares' -import { UserVideoRateUpdate, VideoRateType } from '../../../../shared' +import { UserVideoRateUpdate } from '../../../../shared' const rateVideoRouter = express.Router() @@ -73,7 +73,7 @@ async function rateVideo (req: express.Request, res: express.Response) { if (rateType === 'none') { // Destroy previous rate await previousRate.destroy() } else { // Update previous rate - previousRate.type = rateType as VideoRateType + previousRate.type = rateType await previousRate.save() } -- cgit v1.2.3