diff options
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/rate.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
19 | videoRateValidator, | 19 | videoRateValidator, |
20 | asyncMiddleware | 20 | asyncMiddleware |
21 | } from '../../../middlewares' | 21 | } from '../../../middlewares' |
22 | import { UserVideoRateUpdate, VideoRateType } from '../../../../shared' | 22 | import { UserVideoRateUpdate } from '../../../../shared' |
23 | 23 | ||
24 | const rateVideoRouter = express.Router() | 24 | const rateVideoRouter = express.Router() |
25 | 25 | ||
@@ -73,7 +73,7 @@ async function rateVideo (req: express.Request, res: express.Response) { | |||
73 | if (rateType === 'none') { // Destroy previous rate | 73 | if (rateType === 'none') { // Destroy previous rate |
74 | await previousRate.destroy() | 74 | await previousRate.destroy() |
75 | } else { // Update previous rate | 75 | } else { // Update previous rate |
76 | previousRate.type = rateType as VideoRateType | 76 | previousRate.type = rateType |
77 | 77 | ||
78 | await previousRate.save() | 78 | await previousRate.save() |
79 | } | 79 | } |