diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-11 21:50:51 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-19 21:22:28 +0100 |
commit | feb4bdfd9b46e87aadfa7c0d5338cde887d1f58c (patch) | |
tree | 2abc9fbc9569760e218fd52835850b757344b420 /client/src/app/videos/shared | |
parent | 108626609eda75e4ecc0a83a650a4d53c46220e0 (diff) | |
download | PeerTube-feb4bdfd9b46e87aadfa7c0d5338cde887d1f58c.tar.gz PeerTube-feb4bdfd9b46e87aadfa7c0d5338cde887d1f58c.tar.zst PeerTube-feb4bdfd9b46e87aadfa7c0d5338cde887d1f58c.zip |
First version with PostgreSQL
Diffstat (limited to 'client/src/app/videos/shared')
-rw-r--r-- | client/src/app/videos/shared/sort-field.type.ts | 2 | ||||
-rw-r--r-- | client/src/app/videos/shared/video.model.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/videos/shared/sort-field.type.ts b/client/src/app/videos/shared/sort-field.type.ts index 6e8cc7936..74908e344 100644 --- a/client/src/app/videos/shared/sort-field.type.ts +++ b/client/src/app/videos/shared/sort-field.type.ts | |||
@@ -1,3 +1,3 @@ | |||
1 | export type SortField = "name" | "-name" | 1 | export type SortField = "name" | "-name" |
2 | | "duration" | "-duration" | 2 | | "duration" | "-duration" |
3 | | "createdDate" | "-createdDate"; | 3 | | "createdAt" | "-createdAt"; |
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index b51a0e9de..fae001d78 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | export class Video { | 1 | export class Video { |
2 | author: string; | 2 | author: string; |
3 | by: string; | 3 | by: string; |
4 | createdDate: Date; | 4 | createdAt: Date; |
5 | description: string; | 5 | description: string; |
6 | duration: string; | 6 | duration: string; |
7 | id: string; | 7 | id: string; |
@@ -27,7 +27,7 @@ export class Video { | |||
27 | 27 | ||
28 | constructor(hash: { | 28 | constructor(hash: { |
29 | author: string, | 29 | author: string, |
30 | createdDate: string, | 30 | createdAt: string, |
31 | description: string, | 31 | description: string, |
32 | duration: number; | 32 | duration: number; |
33 | id: string, | 33 | id: string, |
@@ -39,7 +39,7 @@ export class Video { | |||
39 | thumbnailPath: string | 39 | thumbnailPath: string |
40 | }) { | 40 | }) { |
41 | this.author = hash.author; | 41 | this.author = hash.author; |
42 | this.createdDate = new Date(hash.createdDate); | 42 | this.createdAt = new Date(hash.createdAt); |
43 | this.description = hash.description; | 43 | this.description = hash.description; |
44 | this.duration = Video.createDurationString(hash.duration); | 44 | this.duration = Video.createDurationString(hash.duration); |
45 | this.id = hash.id; | 45 | this.id = hash.id; |