1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Speed up populate database script

This commit is contained in:
Chocobozzz 2018-07-18 14:17:54 +02:00
parent 68037af892
commit 7279b45581
2 changed files with 20 additions and 11 deletions

View file

@ -67,8 +67,6 @@ async function rateVideo (req: express.Request, res: express.Response) {
dislikes: dislikesToIncrement
}
// Even if we do not own the video we increment the attributes
// It is useful for the user to have a feedback
await videoInstance.increment(incrementQuery, sequelizeOptions)
await sendVideoRateChange(accountInstance, videoInstance, likesToIncrement, dislikesToIncrement, t)