import { BelongsTo, Column, CreatedAt, ForeignKey, Model, Table, UpdatedAt } from 'sequelize-typescript'
-import { SortType } from '../../helpers'
+import { SortType } from '../../helpers/utils'
import { getSortOnModel } from '../utils'
import { VideoModel } from './video'
const query = {
offset: start,
limit: count,
- order: [ getSortOnModel(sort.sortModel, sort.sortValue) ],
+ order: getSortOnModel(sort.sortModel, sort.sortValue),
include: [ { model: VideoModel } ]
}