diff options
Diffstat (limited to 'client/src/app/shared/video/video-edit.model.ts')
-rw-r--r-- | client/src/app/shared/video/video-edit.model.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/video/video-edit.model.ts b/client/src/app/shared/video/video-edit.model.ts index 5bb0510f9..18c62a1f9 100644 --- a/client/src/app/shared/video/video-edit.model.ts +++ b/client/src/app/shared/video/video-edit.model.ts | |||
@@ -59,14 +59,14 @@ export class VideoEdit implements VideoUpdate { | |||
59 | } | 59 | } |
60 | } | 60 | } |
61 | 61 | ||
62 | patch (values: Object) { | 62 | patch (values: { [ id: string ]: string }) { |
63 | Object.keys(values).forEach((key) => { | 63 | Object.keys(values).forEach((key) => { |
64 | this[ key ] = values[ key ] | 64 | this[ key ] = values[ key ] |
65 | }) | 65 | }) |
66 | 66 | ||
67 | // If schedule publication, the video is private and will be changed to public privacy | 67 | // If schedule publication, the video is private and will be changed to public privacy |
68 | if (parseInt(values['privacy'], 10) === VideoEdit.SPECIAL_SCHEDULED_PRIVACY) { | 68 | if (parseInt(values['privacy'], 10) === VideoEdit.SPECIAL_SCHEDULED_PRIVACY) { |
69 | const updateAt = (values['schedulePublicationAt'] as Date) | 69 | const updateAt = new Date(values['schedulePublicationAt']) |
70 | updateAt.setSeconds(0) | 70 | updateAt.setSeconds(0) |
71 | 71 | ||
72 | this.privacy = VideoPrivacy.PRIVATE | 72 | this.privacy = VideoPrivacy.PRIVATE |