try {
const { videoInstanceUpdated, isNewVideo } = await sequelizeTypescript.transaction(async t => {
// Refresh video since thumbnails to prevent concurrent updates
- const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(videoFromReq.id, t)
+ const video = await VideoModel.loadFull(videoFromReq.id, t)
const sequelizeOptions = { transaction: t }
const oldVideoChannel = video.VideoChannel
}
// Refresh video since files have changed
- return VideoModel.loadAndPopulateAccountAndServerAndTags(video.id)
+ return VideoModel.loadFull(video.id)
}