Skip to content

Commit d1bf4ff

Browse files
committed
refactor: modify employee retrieval to only include non-soft deleted records
1 parent 161816d commit d1bf4ff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/ui/ViewEmployees.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package ui;
66

77
import entities.Position;
8+
import entities.enums.EmployeeFetchType;
89
import entities.enums.Windows;
910
import entry.HumanResourceInformationSystem;
1011
import lombok.extern.slf4j.Slf4j;
@@ -47,7 +48,7 @@ public ViewEmployees() {
4748

4849
private static void initNewEmployeesToTable(DefaultTableModel model) {
4950
HumanResourceInformationSystem.EMPLOYEE_SERVICE
50-
.getEmployees()
51+
.getEmployees(EmployeeFetchType.ONLY_NOT_SOFT_DELETED)
5152
.thenCompose(employees -> {
5253
// Wait for all row additions to complete
5354
return CompletableFuture.allOf(employees.values()

0 commit comments

Comments
 (0)