We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf43f70 commit 91bee7cCopy full SHA for 91bee7c
hrm-domain/packages/hrm-search-config/generateElasticsearchQuery.ts
@@ -386,8 +386,8 @@ const generateContactsQuery = ({
386
},
387
sort:
388
searchParameters.searchTerm.length === 0
389
- ? [{ updatedAt: 'desc' }]
390
- : ['_score', { updatedAt: 'desc' }],
+ ? [{ timeOfContact: 'desc' }]
+ : ['_score', { timeOfContact: 'desc' }],
391
min_score: MIN_SCORE,
392
from: pagination.start,
393
size: pagination.limit,
@@ -501,8 +501,8 @@ const generateCasesQuery = ({
501
502
503
504
505
+ ? [{ createdAt: 'desc' }]
+ : ['_score', { createdAt: 'desc' }],
506
507
508
0 commit comments