diff --git a/pkg/iam/organization_service.go b/pkg/iam/organization_service.go index c134f3399..d792d8001 100644 --- a/pkg/iam/organization_service.go +++ b/pkg/iam/organization_service.go @@ -409,6 +409,7 @@ func (s *OrganizationService) ArchiveUser( invitations := &coredata.Invitations{} onlyPending := coredata.NewInvitationFilter([]coredata.InvitationStatus{coredata.InvitationStatusPending}) + if err := invitations.ExpireByUserID( ctx, tx,