fix ranking function order operation in wild west mode

This commit is contained in:
keyan 2023-05-09 15:07:23 -05:00
parent 6050041d39
commit 2579a6b51c
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ export async function orderByNumerator (me, models) {
if (me) {
const user = await models.user.findUnique({ where: { id: me.id } })
if (user.wildWestMode) {
return 'GREATEST("Item"."weightedVotes", POWER("Item"."weightedVotes", 1.2)) + "Item"."weightedComments"/2'
return '(GREATEST("Item"."weightedVotes", POWER("Item"."weightedVotes", 1.2)) + "Item"."weightedComments"/2)'
}
}