aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-11 14:33:16 +0200
committerChocobozzz <me@florianbigard.com>2021-06-11 14:33:34 +0200
commitfd6a74a83594bfb59e28bf9cae71a39884ebcc2f (patch)
treee1ba2f28ac76c0a3af54448c401063c9ad2702e4 /server/types/models
parent20a206c3d12ad285c31411cd506cede791958322 (diff)
downloadPeerTube-fd6a74a83594bfb59e28bf9cae71a39884ebcc2f.tar.gz
PeerTube-fd6a74a83594bfb59e28bf9cae71a39884ebcc2f.tar.zst
PeerTube-fd6a74a83594bfb59e28bf9cae71a39884ebcc2f.zip
Refactor schedule update
Diffstat (limited to 'server/types/models')
-rw-r--r--server/types/models/video/schedule-video-update.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/server/types/models/video/schedule-video-update.ts b/server/types/models/video/schedule-video-update.ts
index 5d2936000..39fd73501 100644
--- a/server/types/models/video/schedule-video-update.ts
+++ b/server/types/models/video/schedule-video-update.ts
@@ -1,8 +1,4 @@
1import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update' 1import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
2import { PickWith } from '@shared/core-utils'
3import { MVideoAPWithoutCaption, MVideoWithBlacklistLight } from './video'
4
5type Use<K extends keyof ScheduleVideoUpdateModel, M> = PickWith<ScheduleVideoUpdateModel, K, M>
6 2
7// ############################################################################ 3// ############################################################################
8 4
@@ -10,10 +6,6 @@ export type MScheduleVideoUpdate = Omit<ScheduleVideoUpdateModel, 'Video'>
10 6
11// ############################################################################ 7// ############################################################################
12 8
13export type MScheduleVideoUpdateVideoAll =
14 MScheduleVideoUpdate &
15 Use<'Video', MVideoAPWithoutCaption & MVideoWithBlacklistLight>
16
17// Format for API or AP object 9// Format for API or AP object
18 10
19export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'> 11export type MScheduleVideoUpdateFormattable = Pick<MScheduleVideoUpdate, 'updateAt' | 'privacy'>