fix: exclude DELETED tenants from vendor tenant list
All checks were successful
CI / build (push) Successful in 50s
CI / docker (push) Successful in 33s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-10 07:28:56 +02:00
parent ebdb4f9450
commit b7a0530466

View File

@@ -98,7 +98,9 @@ public class VendorTenantService {
}
public List<TenantEntity> listAll() {
return tenantService.findAll();
return tenantService.findAll().stream()
.filter(t -> t.getStatus() != TenantStatus.DELETED)
.toList();
}
public Optional<TenantEntity> getById(UUID id) {