Skip to content
Snippets Groups Projects
Commit 921236e1 authored by Nicolas Castejon's avatar Nicolas Castejon
Browse files

Merge branch '79-research-sort-article-by-date-not-working' into 'development'

Resolve "[Research] - Sort article by date not working"

Closes #79

See merge request refonte-data/portail-data!24
parents 6cf2684a 0b99d595
No related branches found
No related tags found
2 merge requests!27version 2.1.0,!24Resolve "[Research] - Sort article by date not working"
Pipeline #
......@@ -450,7 +450,7 @@ export class ElasticsearchService {
},
},
{
'content-fr.datePublished': {
'content-fr.published_at': {
order: options.sortOptions.order,
unmapped_type: 'date',
},
......@@ -1034,7 +1034,7 @@ export class ElasticsearchService {
if (options.sortDate) {
requestOptions.body['sort'] = [
{
'content-fr.datePublished': { order: 'desc', unmapped_type: 'date' },
'content-fr.published_at': { order: 'desc', unmapped_type: 'date' },
},
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment