Skip to content

Commit

Permalink
hotfix: 스페이스 조회 정렬 기준 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Aug 28, 2024
1 parent ad02900 commit e07f4ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion layer-api/src/main/java/org/layer/LayerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
import org.springframework.scheduling.annotation.EnableAsync;

@OpenAPIDefinition(servers = {
@Server(url = "http://localhost:8080", description = "로컬서버"),
@Server(url = "https://stgapi.layerapp.io", description = "개발서버"),
@Server(url = "https://api.layerapp.io", description = "운영서버")})
@Server(url = "https://api.layerapp.io", description = "운영서버")
})
@SpringBootApplication
@EnableJpaAuditing
@EnableAspectJAutoProxy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public class ActionItemService {

@Transactional
public ActionItemCreateResponse createActionItem(Long memberId, Long retrospectId, String content) {
log.info("?");
log.info("?");

// 만드는 사람이 스페이스 리더인지 확인
Retrospect retrospect = retrospectRepository.findByIdOrThrow(retrospectId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public List<SpaceWithMemberCount> findAllSpacesByMemberIdAndCategoryAndCursor(Lo
return getSpaceWithMemberCountQuery()
.where(predicate)
.groupBy(space.id)
.orderBy(space.createdAt.desc())
.limit(pageSize + 1)
.fetch();
}
Expand Down Expand Up @@ -129,6 +128,7 @@ private JPAQuery<SpaceWithMemberCount> getSpaceWithMemberCountQuery() {
.leftJoin(memberCountRelationTable).on(space.id.eq(memberCountRelationTable.space.id))
.leftJoin(member).on(space.leaderId.eq(member.id))
.leftJoin(form).on(space.formId.eq(form.id))
.orderBy(space.createdAt.desc())
.orderBy(form.id.desc())
.limit(1);

Expand Down Expand Up @@ -158,6 +158,7 @@ private JPAQuery<SpaceWithMemberCount> getSpaceWithMemberCountQuery(Long memberI
.leftJoin(memberCountRelationTable).on(space.id.eq(memberCountRelationTable.space.id))
.leftJoin(member).on(space.leaderId.eq(member.id))
.leftJoin(form).on(space.formId.eq(form.id))
.orderBy(space.createdAt.desc())
.orderBy(form.id.desc())
.limit(1);
}
Expand Down

0 comments on commit e07f4ac

Please sign in to comment.