Skip to content

Commit c200617

Browse files
committed
DBC Tweak - exclude temp corp types
1 parent e4f0ac8 commit c200617

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

auth-api/src/auth_api/utils/auth_event_publisher.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ def _get_team_member_unaffiliated_identifiers(user_id: int, org_id: int) -> list
135135
has_access_subquery = _has_access_through_other_orgs(user_id, org_id, entity_id_column=EntityModel.id)
136136
user_model = UserModel.query.filter_by(id=user_id).first()
137137
# DBC has no interest in NR or TMP events.
138-
excluded_corp_types = [CorpType.NR.value, CorpType.TMP.value]
138+
excluded_corp_types = [
139+
CorpType.NR.value,
140+
CorpType.TMP.value,
141+
CorpType.ATMP.value,
142+
CorpType.CTMP.value,
143+
CorpType.RTMP.value,
144+
]
139145
unaffiliated_identifiers = (
140146
db.session.query(EntityModel.business_identifier)
141147
.join(AffiliationModel, AffiliationModel.entity_id == EntityModel.id)

0 commit comments

Comments
 (0)