From 6e0035d4f3b49a60bcc1553b0120260f35e01f65 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 19 Oct 2025 12:36:09 +0200 Subject: [PATCH] Show profiles that don't set kids strength --- backend/api/src/get-profiles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/api/src/get-profiles.ts b/backend/api/src/get-profiles.ts index 6ba4f518..d25ac8dd 100644 --- a/backend/api/src/get-profiles.ts +++ b/backend/api/src/get-profiles.ts @@ -87,6 +87,8 @@ export const loadProfiles = async (props: profileQueryType) => { intersection(pref_romantic_styles, l.pref_romantic_styles).length) && (!wants_kids_strength || wants_kids_strength == -1 || + !l.wants_kids_strength || + l.wants_kids_strength == -1 || (wants_kids_strength >= 2 ? l.wants_kids_strength >= wants_kids_strength : l.wants_kids_strength <= wants_kids_strength)) && @@ -163,9 +165,7 @@ export const loadProfiles = async (props: profileQueryType) => { !!wants_kids_strength && wants_kids_strength !== -1 && where( - wants_kids_strength >= 2 - ? `wants_kids_strength >= $(wants_kids_strength)` - : `wants_kids_strength <= $(wants_kids_strength)`, + 'wants_kids_strength = -1 OR wants_kids_strength IS NULL OR ' + (wants_kids_strength >= 2 ? `wants_kids_strength >= $(wants_kids_strength)` : `wants_kids_strength <= $(wants_kids_strength)`), {wants_kids_strength} ),