diff options
Diffstat (limited to 'server/models/video/video-import.ts')
-rw-r--r-- | server/models/video/video-import.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-import.ts b/server/models/video/video-import.ts index c723e57c0..9bc0f17f5 100644 --- a/server/models/video/video-import.ts +++ b/server/models/video/video-import.ts | |||
@@ -115,7 +115,7 @@ export class VideoImportModel extends Model<VideoImportModel> { | |||
115 | } | 115 | } |
116 | 116 | ||
117 | static loadAndPopulateVideo (id: number) { | 117 | static loadAndPopulateVideo (id: number) { |
118 | return VideoImportModel.findById(id) | 118 | return VideoImportModel.findByPk(id) |
119 | } | 119 | } |
120 | 120 | ||
121 | static listUserVideoImportsForApi (userId: number, start: number, count: number, sort: string) { | 121 | static listUserVideoImportsForApi (userId: number, start: number, count: number, sort: string) { |