aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-change-ownership.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-change-ownership.ts')
-rw-r--r--server/models/video/video-change-ownership.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-change-ownership.ts b/server/models/video/video-change-ownership.ts
index 48c07728f..85e688c4f 100644
--- a/server/models/video/video-change-ownership.ts
+++ b/server/models/video/video-change-ownership.ts
@@ -110,7 +110,7 @@ export class VideoChangeOwnershipModel extends Model<VideoChangeOwnershipModel>
110 } 110 }
111 111
112 static load (id: number) { 112 static load (id: number) {
113 return VideoChangeOwnershipModel.scope(ScopeNames.FULL).findById(id) 113 return VideoChangeOwnershipModel.scope(ScopeNames.FULL).findByPk(id)
114 } 114 }
115 115
116 toFormattedJSON (): VideoChangeOwnership { 116 toFormattedJSON (): VideoChangeOwnership {