diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-19 10:16:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-19 10:20:38 +0200 |
commit | 96f29c0f6d2e623fb088e88200934c5df8da9924 (patch) | |
tree | f11e52c12f56733bef70ac7bbde5179c5a5ecc40 /server/models/video/video.ts | |
parent | ad76628b17ff8f25d3402d6d669b274116bbf76c (diff) | |
download | PeerTube-96f29c0f6d2e623fb088e88200934c5df8da9924.tar.gz PeerTube-96f29c0f6d2e623fb088e88200934c5df8da9924.tar.zst PeerTube-96f29c0f6d2e623fb088e88200934c5df8da9924.zip |
Optimize SQL requests of videos AP endpoints
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index c7cd2890c..ce2153f87 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1406,7 +1406,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1406 | return getVideoFileResolution(originalFilePath) | 1406 | return getVideoFileResolution(originalFilePath) |
1407 | } | 1407 | } |
1408 | 1408 | ||
1409 | getDescriptionPath () { | 1409 | getDescriptionAPIPath () { |
1410 | return `/api/${API_VERSION}/videos/${this.uuid}/description` | 1410 | return `/api/${API_VERSION}/videos/${this.uuid}/description` |
1411 | } | 1411 | } |
1412 | 1412 | ||