diff options
Diffstat (limited to 'server/controllers/api/videos/comment.ts')
-rw-r--r-- | server/controllers/api/videos/comment.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/controllers/api/videos/comment.ts b/server/controllers/api/videos/comment.ts index a95392543..feda71bdd 100644 --- a/server/controllers/api/videos/comment.ts +++ b/server/controllers/api/videos/comment.ts | |||
@@ -85,8 +85,9 @@ async function listVideoThreads (req: express.Request, res: express.Response) { | |||
85 | user: user | 85 | user: user |
86 | }, 'filter:api.video-threads.list.params') | 86 | }, 'filter:api.video-threads.list.params') |
87 | 87 | ||
88 | resultList = await Hooks.wrapPromise( | 88 | resultList = await Hooks.wrapPromiseFun( |
89 | VideoCommentModel.listThreadsForApi(apiOptions), | 89 | VideoCommentModel.listThreadsForApi, |
90 | apiOptions, | ||
90 | 'filter:api.video-threads.list.result' | 91 | 'filter:api.video-threads.list.result' |
91 | ) | 92 | ) |
92 | } else { | 93 | } else { |
@@ -112,8 +113,9 @@ async function listVideoThreadComments (req: express.Request, res: express.Respo | |||
112 | user: user | 113 | user: user |
113 | }, 'filter:api.video-thread-comments.list.params') | 114 | }, 'filter:api.video-thread-comments.list.params') |
114 | 115 | ||
115 | resultList = await Hooks.wrapPromise( | 116 | resultList = await Hooks.wrapPromiseFun( |
116 | VideoCommentModel.listThreadCommentsForApi(apiOptions), | 117 | VideoCommentModel.listThreadCommentsForApi, |
118 | apiOptions, | ||
117 | 'filter:api.video-thread-comments.list.result' | 119 | 'filter:api.video-thread-comments.list.result' |
118 | ) | 120 | ) |
119 | } else { | 121 | } else { |