Skip to content

Commit

Permalink
chore: change sort key to timeOfContact (contacts) and createdAt (cases)
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Oct 3, 2024
1 parent cf43f70 commit 91bee7c
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 91bee7c

Please sign in to comment.