Skip to content

Commit 8ab97bf

Browse files
committed
fix:isCustom반환
1 parent 3ca66df commit 8ab97bf

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/main/java/com/dnd/sub/domain/subscription/dto/GetMySubscriptionDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public record GetMySubscriptionDto(
1313
String planName,
1414
int price,
1515
boolean isFavorites,
16+
boolean isCustom,
1617
String imageUrl,
1718
LocalDate startedAt
1819
) {

src/main/java/com/dnd/sub/domain/subscription/repository/SubscriptionQueryRepositoryImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public List<GetPaymentSoonDto> findPaymentSoon(Long memberId) {
6767
.join(s.product, p)
6868
.leftJoin(pp).on(pp.id.eq(s.planId))
6969
.where(s.member.id.eq(memberId)
70+
.and(pp.id.eq(s.planId))
7071
.and(s.nextPaymentDay.isNotNull())
7172
.and(s.nextPaymentDay.goe(LocalDate.now()))
7273
.and(s.nextPaymentDay.loe(LocalDate.now().plusDays(7))))
@@ -233,6 +234,7 @@ private List<GetMySubscriptionDto> findSubscriptions(BooleanBuilder builder,
233234
planName,
234235
personalPrice,
235236
sub.isFavorite(),
237+
!prod.isAdminWritten(),
236238
prod.getImageUrl(),
237239
sub.getStartedAt()
238240
);

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
spring:
2-
profiles.active: dev
2+
profiles.active: local

0 commit comments

Comments
 (0)