]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/rate.ts
Don't show videos of remote instance after unfollow
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / rate.ts
index b470f27f6e960fca192af0aba50af2dbf9a9d1e2..a7bd570eb71f9c22e979a500783e17efca157c16 100644 (file)
@@ -62,7 +62,6 @@ async function rateVideo (req: express.Request, res: express.Response) {
         await previousRate.destroy({ transaction: t })
       } else { // Update previous rate
         previousRate.type = rateType
-
         await previousRate.save({ transaction: t })
       }
     } else if (rateType !== 'none') { // There was not a previous rate, insert a new one if there is a rate