Skip to content

Commit

Permalink
fix: updated sql syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinan029 committed Dec 2, 2024
1 parent 2bb7ed6 commit d6b0e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enterprise/api/v1/views/enterprise_customer_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_members(self, request, *args, **kwargs):
au.id,
au.email,
au.date_joined,
coalesce(NULLIF(aup.name, ''), concat(au.first_name, ' ', au.last_name)) as full_name
coalesce(NULLIF(aup.name, ' '), (au.first_name || ' ' || au.last_name)) as full_name
FROM enterprise_enterprisecustomeruser ecu
INNER JOIN auth_user as au on ecu.user_id = au.id
LEFT JOIN auth_userprofile as aup on au.id = aup.user_id
Expand Down

0 comments on commit d6b0e9b

Please sign in to comment.