0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Updated sorting in the recommendations settings (#18560)

closes https://github.com/TryGhost/Product/issues/4020
- show most recently created recommendations first
This commit is contained in:
Sag 2023-10-10 13:36:00 -03:00 committed by GitHub
parent 17c0e3ee60
commit 9e51a8be88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ const Recommendations: React.FC<{ keywords: string[] }> = ({keywords}) => {
const {data: {meta: recommendationsMeta, recommendations} = {}, isLoading: areRecommendationsLoading, hasNextPage, fetchNextPage} = useBrowseRecommendations({
searchParams: {
include: 'count.clicks,count.subscribers',
order: 'count.subscribers desc, count.clicks desc, created_at desc',
order: 'created_at desc',
limit: '5'
},