]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/types/models/video/video-change-ownership.ts
Cleanup models directory organization
[github/Chocobozzz/PeerTube.git] / server / types / models / video / video-change-ownership.ts
index 244d1a6713aaf9a68030865d9d600821dbf265c4..6cad48e4a91c9a8f7dbbd976a451c2f0e46d174a 100644 (file)
@@ -1,7 +1,7 @@
 import { VideoChangeOwnershipModel } from '@server/models/video/video-change-ownership'
 import { PickWith } from '@shared/core-utils'
 import { MAccountDefault, MAccountFormattable } from '../account/account'
-import { MVideo, MVideoWithAllFiles } from './video'
+import { MVideoWithAllFiles, MVideoFormattable } from './video'
 
 type Use<K extends keyof VideoChangeOwnershipModel, M> = PickWith<VideoChangeOwnershipModel, K, M>
 
@@ -23,4 +23,4 @@ export type MVideoChangeOwnershipFormattable =
   Pick<MVideoChangeOwnership, 'id' | 'status' | 'createdAt'> &
   Use<'Initiator', MAccountFormattable> &
   Use<'NextOwner', MAccountFormattable> &
-  Use<'Video', Pick<MVideo, 'id' | 'uuid' | 'url' | 'name'>>
+  Use<'Video', MVideoFormattable>