mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-27 18:07:37 -04:00
Fix connection clause
This commit is contained in:
@@ -28,6 +28,7 @@ export type profileQueryType = {
|
||||
|
||||
export const loadProfiles = async (props: profileQueryType) => {
|
||||
const pg = createSupabaseDirectClient()
|
||||
console.log(props)
|
||||
const {
|
||||
limit: limitParam,
|
||||
after,
|
||||
@@ -119,9 +120,10 @@ export const loadProfiles = async (props: profileQueryType) => {
|
||||
where(`age <= $(pref_age_max) or age is null`, {pref_age_max}),
|
||||
|
||||
pref_relation_styles?.length &&
|
||||
where(`pref_relation_styles && $(pref_relation_styles)`, {
|
||||
pref_relation_styles,
|
||||
}),
|
||||
where(
|
||||
`pref_relation_styles IS NULL OR pref_relation_styles = '{}' OR pref_relation_styles && $(pref_relation_styles)`,
|
||||
{ pref_relation_styles }
|
||||
),
|
||||
|
||||
!!wants_kids_strength &&
|
||||
wants_kids_strength !== -1 &&
|
||||
|
||||
Reference in New Issue
Block a user