Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav committed Jan 4, 2024
1 parent 40bce4e commit 3154242
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/src/database/repositories/memberRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,13 @@ class MemberRepository {
) {
const segmentIds = SequelizeRepository.getSegmentIds(options)

const order = await isFeatureEnabled(FeatureFlag.SEGMENTS, options) ? 'ms."activityEstimate" desc, ms.similarity desc' : 'ms.similarity desc, ms."activityEstimate" desc'
const order = (await isFeatureEnabled(FeatureFlag.SEGMENTS, options))
? 'ms."activityEstimate" desc, ms.similarity desc'
: 'ms.similarity desc, ms."activityEstimate" desc'

const memberFilter = memberId ? ` and (mtm."memberId" = :memberId OR mtm."toMergeId" = :memberId)` : ''
const memberFilter = memberId
? ` and (mtm."memberId" = :memberId OR mtm."toMergeId" = :memberId)`
: ''

const mems = await options.database.sequelize.query(
`
Expand Down

0 comments on commit 3154242

Please sign in to comment.