Skip to content

Commit

Permalink
[chore] spotless 적용 #95
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Aug 13, 2023
1 parent 3cf4b1d commit 2722995
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ private SliceResponse<ArchivingResponse> getCommunityArchivings(
Slice<ArchivingResponse> archivingSlices =
archivingAdaptor
.querySliceArchivingByKeywordExceptBlockOrderByTagArchvingIds(
archivingIdList, blockList, keyword, pageable, tagArchivingIds, userId)
archivingIdList,
blockList,
keyword,
pageable,
tagArchivingIds,
userId)
.map(archiving -> ArchivingResponse.of(archiving, Boolean.FALSE));
return SliceResponse.of(archivingSlices);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public Slice<Archiving> querySliceArchivingByUserIdAndKeywordsOrderByTagArchving
List<Archiving> archivings =
queryFactory
.selectFrom(archiving)
.where(userIdEq(userId),
.where(
userIdEq(userId),
titleContainOrIdIn(keyword, tagArchivingIds),
deleteStatusFalse())
.orderBy(idIn(tagArchivingIds), createdAtDesc())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ public List<Tag> queryTagByTagIdIn(List<Long> tagIds) {

@Override
public List<Tag> queryTagByUserIdContainName(Long userId, String name) {
return queryFactory.selectFrom(tag)
.where(userIdEq(userId), titleContain(name))
.fetch();
return queryFactory.selectFrom(tag).where(userIdEq(userId), titleContain(name)).fetch();
}

private BooleanExpression tagUserIdEq(Long userId) {
Expand Down

0 comments on commit 2722995

Please sign in to comment.