diff --git a/auth-api/src/auth_api/models/affiliation_invitation.py b/auth-api/src/auth_api/models/affiliation_invitation.py index 4296e4a9f4..623cf983c2 100644 --- a/auth-api/src/auth_api/models/affiliation_invitation.py +++ b/auth-api/src/auth_api/models/affiliation_invitation.py @@ -118,27 +118,27 @@ def filter_by(cls, search_filter: AffiliationInvitationSearch, query=None) -> li results = db.session.query(AffiliationInvitation) if search_filter.from_org_id: - results = results.filter(AffiliationInvitation.from_org_id == search_filter.from_org_id) + results = results.filter(AffiliationInvitation.from_org_id == int(search_filter.from_org_id)) filter_set = True if search_filter.to_org_id: - results = results.filter(AffiliationInvitation.to_org_id == search_filter.to_org_id) + results = results.filter(AffiliationInvitation.to_org_id == int(search_filter.to_org_id)) filter_set = True if search_filter.sender_id: - results = results.filter(AffiliationInvitation.sender_id == search_filter.sender_id) + results = results.filter(AffiliationInvitation.sender_id == int(search_filter.sender_id)) filter_set = True if search_filter.approver_id: - results = results.filter(AffiliationInvitation.approver_id == search_filter.approver_id) + results = results.filter(AffiliationInvitation.approver_id == int(search_filter.approver_id)) filter_set = True if search_filter.entity_id: - results = results.filter(AffiliationInvitation.entity_id == search_filter.entity_id) + results = results.filter(AffiliationInvitation.entity_id == int(search_filter.entity_id)) filter_set = True if search_filter.affiliation_id: - results = results.filter(AffiliationInvitation.affiliation_id == search_filter.affiliation_id) + results = results.filter(AffiliationInvitation.affiliation_id == int(search_filter.affiliation_id)) filter_set = True if search_filter.status_codes: