Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Java CI with Gradle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package sol.shinhansecuirty.sosolbe.Service;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;

Expand Down Expand Up @@ -70,6 +71,7 @@ public AccountResponseDTO createSoSolInfo(AccountRequestDTO accountRequestDTO) {
public HistoryResponseDTO findChangeHistory(int userId) {
User user = userRepository.findById(userId).orElse(null);
List<History> historys = historyRepository.findByUser(user);
historys.sort((h1, h2) -> h2.getTradeDate().compareTo(h1.getTradeDate()));

return HistoryResponseDTO.builder()
.tradings(historys)
Expand Down