mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Use sequelize scopes
This commit is contained in:
@@ -58,6 +58,7 @@ export class VideoDetails extends Video implements VideoDetailsServerModel {
|
||||
this.files = hash.files
|
||||
this.channel = hash.channel
|
||||
this.account = hash.account
|
||||
this.tags = hash.tags
|
||||
|
||||
this.likesPercent = (this.likes / (this.likes + this.dislikes)) * 100
|
||||
this.dislikesPercent = (this.dislikes / (this.likes + this.dislikes)) * 100
|
||||
|
||||
@@ -22,7 +22,6 @@ export class Video implements VideoServerModel {
|
||||
isLocal: boolean
|
||||
name: string
|
||||
serverHost: string
|
||||
tags: string[]
|
||||
thumbnailPath: string
|
||||
thumbnailUrl: string
|
||||
previewPath: string
|
||||
@@ -71,7 +70,6 @@ export class Video implements VideoServerModel {
|
||||
this.isLocal = hash.isLocal
|
||||
this.name = hash.name
|
||||
this.serverHost = hash.serverHost
|
||||
this.tags = hash.tags
|
||||
this.thumbnailPath = hash.thumbnailPath
|
||||
this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath
|
||||
this.previewPath = hash.previewPath
|
||||
|
||||
Reference in New Issue
Block a user