aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-18 14:17:54 +0200
committerChocobozzz <me@florianbigard.com>2018-07-24 14:04:05 +0200
commit7279b455811f4806dcb74a08d17b837bc22533c1 (patch)
treea92c93f330b86fb76b4c7b8bd7f640ddb2c7d16d /server/controllers/api
parent68037af8926a348fe03dc0b3b95a9553d246de20 (diff)
downloadPeerTube-7279b455811f4806dcb74a08d17b837bc22533c1.tar.gz
PeerTube-7279b455811f4806dcb74a08d17b837bc22533c1.tar.zst
PeerTube-7279b455811f4806dcb74a08d17b837bc22533c1.zip
Speed up populate database script
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/videos/rate.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/controllers/api/videos/rate.ts b/server/controllers/api/videos/rate.ts
index 9d63b5821..b1732837d 100644
--- a/server/controllers/api/videos/rate.ts
+++ b/server/controllers/api/videos/rate.ts
@@ -67,8 +67,6 @@ async function rateVideo (req: express.Request, res: express.Response) {
67 dislikes: dislikesToIncrement 67 dislikes: dislikesToIncrement
68 } 68 }
69 69
70 // Even if we do not own the video we increment the attributes
71 // It is useful for the user to have a feedback
72 await videoInstance.increment(incrementQuery, sequelizeOptions) 70 await videoInstance.increment(incrementQuery, sequelizeOptions)
73 71
74 await sendVideoRateChange(accountInstance, videoInstance, likesToIncrement, dislikesToIncrement, t) 72 await sendVideoRateChange(accountInstance, videoInstance, likesToIncrement, dislikesToIncrement, t)