fields: [ 'p2pMediaLoaderInfohashes' ],
using: 'gin'
}
- ] as any // FIXME: sequelize typings
+ ]
})
export class VideoStreamingPlaylistModel extends Model<VideoStreamingPlaylistModel> {
@CreatedAt
@AllowNull(false)
@Is('VideoStreamingPlaylistInfoHashes', value => 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)
raw: true
}
- return VideoModel.sequelize.query<any>(query, options)
+ return VideoModel.sequelize.query<object>(query, options)
.then(results => results.length === 1)
}