From 7cde3b9c2e84ea20bb0aae4544598483cde9e22c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 7 Jan 2020 14:56:07 +0100 Subject: Update validator dependency --- server/models/utils.ts | 2 +- server/models/video/video-playlist-element.ts | 2 +- server/models/video/video.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/models') diff --git a/server/models/utils.ts b/server/models/utils.ts index 4199cc443..f89b80011 100644 --- a/server/models/utils.ts +++ b/server/models/utils.ts @@ -1,5 +1,5 @@ import { Model, Sequelize } from 'sequelize-typescript' -import * as validator from 'validator' +import validator from 'validator' import { Col } from 'sequelize/types/lib/utils' import { literal, OrderItem } from 'sequelize' diff --git a/server/models/video/video-playlist-element.ts b/server/models/video/video-playlist-element.ts index 9d2ea710e..f2d71357f 100644 --- a/server/models/video/video-playlist-element.ts +++ b/server/models/video/video-playlist-element.ts @@ -19,7 +19,7 @@ import { getSort, throwIfNotValid } from '../utils' import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' import { CONSTRAINTS_FIELDS } from '../../initializers/constants' import { PlaylistElementObject } from '../../../shared/models/activitypub/objects/playlist-element-object' -import * as validator from 'validator' +import validator from 'validator' import { AggregateOptions, Op, ScopeOptions, Sequelize, Transaction } from 'sequelize' import { VideoPlaylistElement, VideoPlaylistElementType } from '../../../shared/models/videos/playlist/video-playlist-element.model' import { AccountModel } from '../account/account' diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 1f3c25ecb..fec3dcc20 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -142,7 +142,7 @@ import { MVideoFile, MVideoFileStreamingPlaylistVideo } from '../../typings/mode import { MThumbnail } from '../../typings/models/video/thumbnail' import { VideoFile } from '@shared/models/videos/video-file.model' import { getHLSDirectory, getTorrentFileName, getTorrentFilePath, getVideoFilename, getVideoFilePath } from '@server/lib/video-paths' -import * as validator from 'validator' +import validator from 'validator' // FIXME: Define indexes here because there is an issue with TS and Sequelize.literal when called directly in the annotation const indexes: (ModelIndexesOptions & { where?: WhereOptions })[] = [ -- cgit v1.2.3