Skip to content

Commit

Permalink
Filter out deleted memberOrganizations in list (#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
skwowet authored and sausage-todd committed Aug 26, 2024
1 parent 0342c07 commit c84a9e6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export async function fetchMemberOrganizations(
SELECT "id", "organizationId", "dateStart", "dateEnd", "title", "memberId", "source"
FROM "memberOrganizations"
WHERE "memberId" = $(memberId)
AND "deletedAt" IS NULL
ORDER BY
CASE
WHEN "dateEnd" IS NULL AND "dateStart" IS NOT NULL THEN 1
Expand Down

0 comments on commit c84a9e6

Please sign in to comment.