From 38267c0c8aa80f974a2c0b4c2bd33c8d8008ac94 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 8 Dec 2020 10:30:33 +0100 Subject: Use dedicated hooks for account/channel videos --- server/controllers/api/accounts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/api/accounts.ts') diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts index 9eb29d330..e807b4f44 100644 --- a/server/controllers/api/accounts.ts +++ b/server/controllers/api/accounts.ts @@ -176,12 +176,12 @@ async function listAccountVideos (req: express.Request, res: express.Response) { accountId: account.id, user: res.locals.oauth ? res.locals.oauth.token.User : undefined, countVideos - }, 'filter:api.videos.list.params') + }, 'filter:api.accounts.videos.list.params') const resultList = await Hooks.wrapPromiseFun( VideoModel.listForApi, apiOptions, - 'filter:api.videos.list.result' + 'filter:api.accounts.videos.list.result' ) return res.json(getFormattedObjects(resultList.data, resultList.total)) -- cgit v1.2.3