diff options
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/rate.ts | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/server/controllers/api/videos/rate.ts b/server/controllers/api/videos/rate.ts index b470f27f6..a7bd570eb 100644 --- a/server/controllers/api/videos/rate.ts +++ b/server/controllers/api/videos/rate.ts | |||
@@ -62,7 +62,6 @@ async function rateVideo (req: express.Request, res: express.Response) { | |||
62 | await previousRate.destroy({ transaction: t }) | 62 | await previousRate.destroy({ transaction: t }) |
63 | } else { // Update previous rate | 63 | } else { // Update previous rate |
64 | previousRate.type = rateType | 64 | previousRate.type = rateType |
65 | |||
66 | await previousRate.save({ transaction: t }) | 65 | await previousRate.save({ transaction: t }) |
67 | } | 66 | } |
68 | } else if (rateType !== 'none') { // There was not a previous rate, insert a new one if there is a rate | 67 | } else if (rateType !== 'none') { // There was not a previous rate, insert a new one if there is a rate |