- const resultList = await VideoModel.listUserVideosForApi(
- user.Account.id,
- req.query.start as number,
- req.query.count as number,
- req.query.sort as VideoSortField
+
+ const apiOptions = await Hooks.wrapObject({
+ accountId: user.Account.id,
+ start: req.query.start,
+ count: req.query.count,
+ sort: req.query.sort,
+ search: req.query.search
+ }, 'filter:api.user.me.videos.list.params')
+
+ const resultList = await Hooks.wrapPromiseFun(
+ VideoModel.listUserVideosForApi,
+ apiOptions,
+ 'filter:api.user.me.videos.list.result'