From df1966c9b48fd3cb3e0ec227bac97065d0122d78 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Nov 2017 15:00:10 +0100 Subject: Fix lint --- server/models/video/video.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/models/video') 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 loadAndPopulateAccountAndServerAndTags = function (id: number) { const options = { + order: [ [ Video['sequelize'].models.Tag, 'name', 'ASC' ] ], include: [ { model: Video['sequelize'].models.VideoChannel, @@ -1012,6 +1013,7 @@ loadAndPopulateAccountAndServerAndTags = function (id: number) { loadByUUIDAndPopulateAccountAndServerAndTags = function (uuid: string) { const options = { + order: [ [ Video['sequelize'].models.Tag, 'name', 'ASC' ] ], where: { uuid }, -- cgit v1.2.3