Skip to content

Commit

Permalink
chore: fixing native build
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Dec 20, 2024
1 parent fb259a4 commit acdb44c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@
<version>1.18.36</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.ocpsoft.prettytime</groupId>
<artifactId>prettytime</artifactId>
<version>5.0.9.Final</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.List;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.ocpsoft.prettytime.PrettyTime;
import org.springframework.stereotype.Service;

@Slf4j
Expand All @@ -18,7 +17,6 @@ public class UserActionsService {
private final ResultsAuditActivityRepository auditActivityRepository;
private final LoggedUserService loggedUserService;
private final SilvaConfiguration silvaConfiguration;
private final PrettyTime prettyTime = new PrettyTime();

public List<MyRecentActionsRequestsDto> getResultsAuditActivity() {
String userId = loggedUserService.getLoggedUserId();
Expand All @@ -35,7 +33,6 @@ public List<MyRecentActionsRequestsDto> getResultsAuditActivity() {
entity.getOpeningId(),
entity.getCategoryCode(),
entity.getCategoryCodeDescription(),
prettyTime.format(entity.getEntryTimestamp()),
entity.getEntryTimestamp()
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public record MyRecentActionsRequestsDto(
Long openingId,
String statusCode,
String statusDescription,
String lastUpdatedLabel,
LocalDateTime lastUpdated
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.Objects;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.ocpsoft.prettytime.PrettyTime;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
Expand All @@ -38,7 +37,6 @@ public class DashboardMetricsService {

private final LoggedUserService loggedUserService;

private final PrettyTime prettyTime = new PrettyTime();


/**
Expand Down Expand Up @@ -166,7 +164,6 @@ public List<MyRecentActionsRequestsDto> getUserRecentOpeningsActions() {
entity.getOpeningId(),
entity.getStatusCode(),
entity.getStatusDesc(),
prettyTime.format(entity.getLastUpdated()),
entity.getLastUpdated()
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ void getUserRecentOpeningsActions_happyPath_shouldSucceed() {
Assertions.assertEquals(112233L, dtoList.get(0).openingId());
Assertions.assertEquals("APP", dtoList.get(0).statusCode());
Assertions.assertEquals("Approved", dtoList.get(0).statusDescription());
Assertions.assertEquals("2 hours ago", dtoList.get(0).lastUpdatedLabel());
}

@Test
Expand Down

0 comments on commit acdb44c

Please sign in to comment.