mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Cleanup model types
This commit is contained in:
@@ -19,7 +19,7 @@ import { getOrCreateActorAndServerAndModel, getOrCreateVideoAndAccountAndChannel
|
||||
import { logger } from '../../helpers/logger'
|
||||
import { VideoChannelModel } from '../../models/video/video-channel'
|
||||
import { loadActorUrlOrGetFromWebfinger } from '../../helpers/webfinger'
|
||||
import { MChannelAccountDefault, MVideoAccountAllFiles } from '../../typings/models'
|
||||
import { MChannelAccountDefault, MVideoAccountLightBlacklistAllFiles } from '../../typings/models'
|
||||
|
||||
const searchRouter = express.Router()
|
||||
|
||||
@@ -138,7 +138,7 @@ async function searchVideosDB (query: VideosSearchQuery, res: express.Response)
|
||||
}
|
||||
|
||||
async function searchVideoURI (url: string, res: express.Response) {
|
||||
let video: MVideoAccountAllFiles
|
||||
let video: MVideoAccountLightBlacklistAllFiles
|
||||
|
||||
// Check if we can fetch a remote video with the URL
|
||||
if (isUserAbleToSearchRemoteURI(res)) {
|
||||
|
||||
@@ -25,7 +25,7 @@ import { sequelizeTypescript } from '../../../initializers/database'
|
||||
import { createVideoMiniatureFromExisting } from '../../../lib/thumbnail'
|
||||
import { ThumbnailType } from '../../../../shared/models/videos/thumbnail.type'
|
||||
import {
|
||||
MChannelActorAccountDefault,
|
||||
MChannelAccountDefault,
|
||||
MThumbnail,
|
||||
MUser,
|
||||
MVideoTag,
|
||||
@@ -234,7 +234,7 @@ function insertIntoDB (parameters: {
|
||||
video: MVideoThumbnailAccountDefault,
|
||||
thumbnailModel: MThumbnail,
|
||||
previewModel: MThumbnail,
|
||||
videoChannel: MChannelActorAccountDefault,
|
||||
videoChannel: MChannelAccountDefault,
|
||||
tags: string[],
|
||||
videoImportAttributes: Partial<MVideoImport>,
|
||||
user: MUser
|
||||
|
||||
Reference in New Issue
Block a user