aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-24 15:00:10 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:53 +0100
commitdf1966c9b48fd3cb3e0ec227bac97065d0122d78 (patch)
treef871765ae33f03c5ad803c34782294b7d6f97c7c /server/models
parent652b30564c41b6ad1a42568a5792cb58d00cd10d (diff)
downloadPeerTube-df1966c9b48fd3cb3e0ec227bac97065d0122d78.tar.gz
PeerTube-df1966c9b48fd3cb3e0ec227bac97065d0122d78.tar.zst
PeerTube-df1966c9b48fd3cb3e0ec227bac97065d0122d78.zip
Fix lint
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 82b95c489..457bfce77 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -984,6 +984,7 @@ loadByUUIDOrURL = function (uuid: string, url: string, t?: Sequelize.Transaction
984 984
985loadAndPopulateAccountAndServerAndTags = function (id: number) { 985loadAndPopulateAccountAndServerAndTags = function (id: number) {
986 const options = { 986 const options = {
987 order: [ [ Video['sequelize'].models.Tag, 'name', 'ASC' ] ],
987 include: [ 988 include: [
988 { 989 {
989 model: Video['sequelize'].models.VideoChannel, 990 model: Video['sequelize'].models.VideoChannel,
@@ -1012,6 +1013,7 @@ loadAndPopulateAccountAndServerAndTags = function (id: number) {
1012 1013
1013loadByUUIDAndPopulateAccountAndServerAndTags = function (uuid: string) { 1014loadByUUIDAndPopulateAccountAndServerAndTags = function (uuid: string) {
1014 const options = { 1015 const options = {
1016 order: [ [ Video['sequelize'].models.Tag, 'name', 'ASC' ] ],
1015 where: { 1017 where: {
1016 uuid 1018 uuid
1017 }, 1019 },