X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fvideo-channel.ts;h=c9887c667cea959105df88c5a7976bf581e7fd96;hb=76314386aeafdd6849b7b70c517779d6b2013473;hp=41eab456bb7491e560c25297be3d443978516ead;hpb=00aab0666c6f772548c160fdfa871a8843b88f37;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/video-channel.ts b/server/lib/video-channel.ts index 41eab456b..c9887c667 100644 --- a/server/lib/video-channel.ts +++ b/server/lib/video-channel.ts @@ -1,13 +1,12 @@ import * as Sequelize from 'sequelize' -import * as uuidv4 from 'uuid/v4' +import { v4 as uuidv4 } from 'uuid' import { VideoChannelCreate } from '../../shared/models' import { VideoChannelModel } from '../models/video/video-channel' import { buildActorInstance, federateVideoIfNeeded, getVideoChannelActivityPubUrl } from './activitypub' import { VideoModel } from '../models/video/video' import { MAccountId, MChannelDefault, MChannelId } from '../typings/models' -type CustomVideoChannelModelAccount = MChannelDefault & - { Account?: T } +type CustomVideoChannelModelAccount = MChannelDefault & { Account?: T } async function createLocalVideoChannel ( videoChannelInfo: VideoChannelCreate,