From 9593a78ae1368a9ad8bb11044fce6fde2892701a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Oct 2021 09:10:01 +0200 Subject: Refactor sort middlewares --- server/initializers/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/initializers') diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 9896e1efb..029984559 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -69,8 +69,8 @@ const SORTABLE_COLUMNS = { VIDEO_RATES: [ 'createdAt' ], BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ], - FOLLOWERS: [ 'createdAt', 'state', 'score' ], - FOLLOWING: [ 'createdAt', 'redundancyAllowed', 'state' ], + INSTANCE_FOLLOWERS: [ 'createdAt', 'state', 'score' ], + INSTANCE_FOLLOWING: [ 'createdAt', 'redundancyAllowed', 'state' ], VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'trending', 'hot', 'best' ], -- cgit v1.2.3