Skip to content

Commit

Permalink
Fix organization asset sending bug
Browse files Browse the repository at this point in the history
  • Loading branch information
htysc committed Dec 9, 2023
1 parent d04c6a4 commit 29e75b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/services/partnerNetwork/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ async function getOrganizationAssets(organizationId, assetType, characteristics,
(asset.serviceProvider?.organization?._id === organizationId || asset.organization?._id === organizationId)
&& (asset.shareability === 'Shareable with all organizations'
|| (asset.shareability === 'Shareable with partner organizations'
&& (asset.partnerOrganizations.some(org => partnerOrganizations.includes(org))
&& (asset.partnerOrganizations?.some(org => partnerOrganizations.includes(org))
|| asset.partnerOrganizations.map(org => org._uri).some(org => partnerOrganizations.includes(org))))
|| (assetType === 'service' && programs.map(program => program.id).includes(asset.program?.split('_')[1])))
));
Expand Down

0 comments on commit 29e75b8

Please sign in to comment.