Skip to content

Commit

Permalink
refactor(bookmarkPageService): 불필요한 import 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-Ha committed Jun 29, 2022
1 parent 55e49d5 commit 70e2c27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import com.yapp.web2.security.jwt.JwtProvider
import com.yapp.web2.util.AES256Util
import org.springframework.data.domain.Page
import org.springframework.data.domain.PageImpl
import org.springframework.data.domain.PageRequest
import org.springframework.data.domain.Pageable
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
Expand Down Expand Up @@ -61,7 +60,8 @@ class BookmarkPageService(
}

val bookmarkList = bookmarkToBookmarkRequestDto(list)
val bookmarkInterfaceList = bookmarkInterfaceToBookmarkRequestDto(bookmarkInterfaceRepository.findAllByUserId(idFromToken))
val bookmarkInterfaceList =
bookmarkInterfaceToBookmarkRequestDto(bookmarkInterfaceRepository.findAllByUserId(idFromToken))

val result = bookmarkList + bookmarkInterfaceList
return PageImpl(result, pageable, result.size.toLong())
Expand Down

0 comments on commit 70e2c27

Please sign in to comment.