We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53cfac9 commit f77174bCopy full SHA for f77174b
1 file changed
services/libs/data-access-layer/src/member-organization-affiliation/index.ts
@@ -375,6 +375,7 @@ async function processAffiliationActivities(
375
FROM "memberSegmentAffiliations" msa
376
WHERE msa."memberId" = $(memberId)
377
AND msa."segmentId" = ar."segmentId"
378
+ AND msa."organizationId" IS NOT NULL
379
AND (msa."dateStart" IS NULL OR ar."timestamp" >= msa."dateStart"::date)
380
AND (msa."dateEnd" IS NULL OR ar."timestamp" < msa."dateEnd"::date + interval '1 day')
381
)
0 commit comments