diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-31 16:31:24 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-31 16:31:24 +0100 |
commit | 53abc4c272be9ecc951274458d054dbaf86e594d (patch) | |
tree | 5d69eca59cf3b51c95ecad190f8cdb058ab9e3f7 /server/controllers/api | |
parent | 604e02abcba0a50be23f243db30eca94b68cd35f (diff) | |
download | PeerTube-53abc4c272be9ecc951274458d054dbaf86e594d.tar.gz PeerTube-53abc4c272be9ecc951274458d054dbaf86e594d.tar.zst PeerTube-53abc4c272be9ecc951274458d054dbaf86e594d.zip |
Upgrade server packages
Diffstat (limited to 'server/controllers/api')
-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 | } |