From 3acc50844047a37698f0618fa235c138e386a053 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Apr 2019 09:50:57 +0200 Subject: Upgrade sequelize --- server/models/video/video-streaming-playlist.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/models/video/video-streaming-playlist.ts') diff --git a/server/models/video/video-streaming-playlist.ts b/server/models/video/video-streaming-playlist.ts index b30267e09..31dc82c54 100644 --- a/server/models/video/video-streaming-playlist.ts +++ b/server/models/video/video-streaming-playlist.ts @@ -26,7 +26,7 @@ import { QueryTypes, Op } from 'sequelize' fields: [ 'p2pMediaLoaderInfohashes' ], using: 'gin' } - ] as any // FIXME: sequelize typings + ] }) export class VideoStreamingPlaylistModel extends Model { @CreatedAt @@ -46,7 +46,7 @@ export class VideoStreamingPlaylistModel extends Model throwIfNotValid(value, v => isArrayOf(v, isVideoFileInfoHashValid), 'info hashes')) - @Column({ type: DataType.ARRAY(DataType.STRING) }) // FIXME: typings + @Column(DataType.ARRAY(DataType.STRING)) p2pMediaLoaderInfohashes: string[] @AllowNull(false) @@ -87,7 +87,7 @@ export class VideoStreamingPlaylistModel extends Model(query, options) + return VideoModel.sequelize.query(query, options) .then(results => results.length === 1) } -- cgit v1.2.3