aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/videos.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/controllers/api/videos.js b/server/controllers/api/videos.js
index 75a661bcc..c936105e7 100644
--- a/server/controllers/api/videos.js
+++ b/server/controllers/api/videos.js
@@ -389,11 +389,7 @@ function reportVideoAbuse (req, res, finalCallback) {
389 389
390 waterfall([ 390 waterfall([
391 391
392 function startTransaction (callback) { 392 databaseUtils.startSerializableTransaction,
393 db.sequelize.transaction().asCallback(function (err, t) {
394 return callback(err, t)
395 })
396 },
397 393
398 function createAbuse (t, callback) { 394 function createAbuse (t, callback) {
399 db.VideoAbuse.create(abuse).asCallback(function (err, abuse) { 395 db.VideoAbuse.create(abuse).asCallback(function (err, abuse) {