From c02530e6495b9d46a60f18c482100c7bc047eae0 Mon Sep 17 00:00:00 2001 From: nuno-aac Date: Fri, 20 Oct 2023 09:44:48 +0100 Subject: [PATCH] Update jobs sorting --- workspaces/cms-scripts/src/algolia.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/workspaces/cms-scripts/src/algolia.ts b/workspaces/cms-scripts/src/algolia.ts index 234144fc48e..641eb950e21 100644 --- a/workspaces/cms-scripts/src/algolia.ts +++ b/workspaces/cms-scripts/src/algolia.ts @@ -81,6 +81,13 @@ try { }) .wait(); } + + if (resourceName === "jobs") { + await index.setSettings({ + customRanking: ["desc(published_at_ts)"], + }); + + } } } catch (err) { console.error(err);