1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Server: remote video validators refractoring

This commit is contained in:
Chocobozzz 2017-01-17 20:59:16 +01:00
parent 62f4ef413c
commit da691c46df
3 changed files with 29 additions and 32 deletions

View file

@ -389,11 +389,7 @@ function reportVideoAbuse (req, res, finalCallback) {
waterfall([
function startTransaction (callback) {
db.sequelize.transaction().asCallback(function (err, t) {
return callback(err, t)
})
},
databaseUtils.startSerializableTransaction,
function createAbuse (t, callback) {
db.VideoAbuse.create(abuse).asCallback(function (err, abuse) {