diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-17 20:59:16 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-17 20:59:16 +0100 |
commit | da691c46df2f3c542d4fffaaa99ef18b6ef71f53 (patch) | |
tree | e6ce2dd25bc66e6268e839e96009576f4038758b /server/controllers | |
parent | 62f4ef413c8ef4269e7cdc21dea0e99ab2191201 (diff) | |
download | PeerTube-da691c46df2f3c542d4fffaaa99ef18b6ef71f53.tar.gz PeerTube-da691c46df2f3c542d4fffaaa99ef18b6ef71f53.tar.zst PeerTube-da691c46df2f3c542d4fffaaa99ef18b6ef71f53.zip |
Server: remote video validators refractoring
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/videos.js | 6 |
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) { |