From d2468c8383c1395d108eec9769a486d4bcfd5b1e Mon Sep 17 00:00:00 2001 From: skakac Date: Thu, 7 Nov 2024 11:18:19 +0100 Subject: [PATCH] Sort by verified first --- src/api/controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/controller.ts b/src/api/controller.ts index 83d061c..59ad96c 100644 --- a/src/api/controller.ts +++ b/src/api/controller.ts @@ -84,7 +84,7 @@ export async function searchByContent( }, { score: { $meta: 'textScore' } } ) - .sort({ holders: -1, score: { $meta: 'textScore' } }) + .sort({ verified: -1, holders: -1, score: { $meta: 'textScore' } }) .skip(data.start) .limit(data.limit)