From 2922e048de95738b3319054ce0778f873a34a0ee Mon Sep 17 00:00:00 2001 From: Julien Le Bras Date: Wed, 28 Mar 2018 23:38:52 +0200 Subject: Add publishedAt field for video model. * New field added in the `video` table + migration script * `publishedAt` updated to NOW when privacy changes from private to public/unlisted (default = NOW) * Models updated to handle the new attribute * Client interface updated to use `publishedAt` instead of `createdAt` except in My Account > My Videos view --- shared/models/videos/video.model.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'shared/models/videos/video.model.ts') diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index ebd2813ca..1b5f1a09c 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts @@ -22,6 +22,7 @@ export interface Video { uuid: string createdAt: Date | string updatedAt: Date | string + publishedAt: Date | string category: VideoConstant licence: VideoConstant language: VideoConstant -- cgit v1.2.3