-import * as express from 'express'
+import express from 'express'
import { SortType } from '../models/utils'
const setDefaultSort = setDefaultSortFactory('-createdAt')
// Set model we want to sort onto
if (req.query.sort === '-createdAt' || req.query.sort === 'createdAt' ||
req.query.sort === '-id' || req.query.sort === 'id') {
- // If we want to sort onto the BlacklistedVideos relation, we won't specify it in the query parameter ...
+ // If we want to sort onto the BlacklistedVideos relation, we won't specify it in the query parameter...
newSort.sortModel = undefined
} else {
newSort.sortModel = 'Video'