aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video.ts')
-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 },