16 lines
622 B
TypeScript
16 lines
622 B
TypeScript
import { SORTABLE_COLUMNS } from '../../initializers/constants'
|
|
import { checkSort, createSortableColumns } from './utils'
|
|
|
|
const SORTABLE_VIDEOS_SEARCH_COLUMNS = createSortableColumns(SORTABLE_COLUMNS.VIDEOS_SEARCH)
|
|
const SORTABLE_CHANNELS_SEARCH_COLUMNS = createSortableColumns(SORTABLE_COLUMNS.CHANNELS_SEARCH)
|
|
|
|
const videosSearchSortValidator = checkSort(SORTABLE_VIDEOS_SEARCH_COLUMNS)
|
|
const channelsSearchSortValidator = checkSort(SORTABLE_CHANNELS_SEARCH_COLUMNS)
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
videosSearchSortValidator,
|
|
channelsSearchSortValidator
|
|
}
|