From 89cd12756035a146bbcc4db78cd3cd64f2f3d88d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Jul 2019 17:30:41 +0200 Subject: Add hook filters tests --- server/models/video/video.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'server/models') 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 { .findOne(options) } - static loadForGetAPI (id: number | string, t?: Transaction, userId?: number) { + static loadForGetAPI (parameters: { + id: number | string, + t?: Transaction, + userId?: number + }) { + const { id, t, userId } = parameters const where = buildWhereIdOrUUID(id) const options = { -- cgit v1.2.3