aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index ec3d5ddb0..443aec9c2 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1472,7 +1472,12 @@ export class VideoModel extends Model<VideoModel> {
1472 .findOne(options) 1472 .findOne(options)
1473 } 1473 }
1474 1474
1475 static loadForGetAPI (id: number | string, t?: Transaction, userId?: number) { 1475 static loadForGetAPI (parameters: {
1476 id: number | string,
1477 t?: Transaction,
1478 userId?: number
1479 }) {
1480 const { id, t, userId } = parameters
1476 const where = buildWhereIdOrUUID(id) 1481 const where = buildWhereIdOrUUID(id)
1477 1482
1478 const options = { 1483 const options = {