]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-change-ownership.ts
Add user adminFlags
[github/Chocobozzz/PeerTube.git] / server / models / video / video-change-ownership.ts
index 48c07728f66b9b87af81be3fdf5dbc2d555e04bf..85e688c4f3abd1a05ac48be114ad77d77ef83716 100644 (file)
@@ -110,7 +110,7 @@ export class VideoChangeOwnershipModel extends Model<VideoChangeOwnershipModel>
   }
 
   static load (id: number) {
-    return VideoChangeOwnershipModel.scope(ScopeNames.FULL).findById(id)
+    return VideoChangeOwnershipModel.scope(ScopeNames.FULL).findByPk(id)
   }
 
   toFormattedJSON (): VideoChangeOwnership {