Skip to content

Commit

Permalink
Merge pull request techmatters#753 from techmatters/gian_CHI-2965-2
Browse files Browse the repository at this point in the history
chore: change sort key to timeOfContact (contacts) and createdAt (cases)
  • Loading branch information
GPaoloni authored Oct 3, 2024
2 parents cf43f70 + 91bee7c commit bfe61e4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ const generateContactsQuery = ({
},
sort:
searchParameters.searchTerm.length === 0
? [{ updatedAt: 'desc' }]
: ['_score', { updatedAt: 'desc' }],
? [{ timeOfContact: 'desc' }]
: ['_score', { timeOfContact: 'desc' }],
min_score: MIN_SCORE,
from: pagination.start,
size: pagination.limit,
Expand Down Expand Up @@ -501,8 +501,8 @@ const generateCasesQuery = ({
},
sort:
searchParameters.searchTerm.length === 0
? [{ updatedAt: 'desc' }]
: ['_score', { updatedAt: 'desc' }],
? [{ createdAt: 'desc' }]
: ['_score', { createdAt: 'desc' }],
min_score: MIN_SCORE,
from: pagination.start,
size: pagination.limit,
Expand Down

0 comments on commit bfe61e4

Please sign in to comment.