Skip to content

Commit

Permalink
Update jobs sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-aac committed Oct 20, 2023
1 parent 541ee4c commit 9729f1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions workspaces/cms-scripts/src/algolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ try {
})
.wait();
}

if (resourceName === "jobs") {
await index.setSettings({
customRanking: ["desc(published_at_ts)"],
});
}
}
} catch (err) {
console.error(err);
Expand Down

0 comments on commit 9729f1e

Please sign in to comment.