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:
parent
62f4ef413c
commit
da691c46df
3 changed files with 29 additions and 32 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue