- static listUserVideoImportsForApi (userId: number, start: number, count: number, sort: string) {
+ static listUserVideoImportsForApi (options: {
+ userId: number
+ start: number
+ count: number
+ sort: string
+
+ targetUrl?: string
+ }) {
+ const { userId, start, count, sort, targetUrl } = options
+
+ const where: WhereOptions = { userId }
+
+ if (targetUrl) where['targetUrl'] = targetUrl
+