mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Server: transaction serializable for videos
This commit is contained in:
parent
f2cdb86675
commit
edc5e86006
3 changed files with 3 additions and 3 deletions
|
@ -264,7 +264,7 @@ function updateVideo (req, res, finalCallback) {
|
|||
waterfall([
|
||||
|
||||
function startTransaction (callback) {
|
||||
db.sequelize.transaction().asCallback(function (err, t) {
|
||||
db.sequelize.transaction({ isolationLevel: 'SERIALIZABLE' }).asCallback(function (err, t) {
|
||||
return callback(err, t)
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue