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 b83dc97 commit c02530e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workspaces/cms-scripts/src/algolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ try {
})
.wait();
}

if (resourceName === "jobs") {
await index.setSettings({
customRanking: ["desc(published_at_ts)"],
});

}
}
} catch (err) {
console.error(err);
Expand Down

0 comments on commit c02530e

Please sign in to comment.